/* =========================
   GALLERY (MASONRY STYLE)
========================= */

.shp-gallery-grid {
    column-count: 4;
    column-gap: 14px;
    padding: 30px;
    max-width: 1200px;
    margin: 20px auto 0;
    position: relative;
    z-index: 2;
    margin-top: 10px;
}

.shp-gallery-grid img {
    width: 100%;
    height: auto;
    margin-bottom: 14px;
    border-radius: 10px;
    display: block;
    cursor: pointer;

    opacity: 0;
    transform: translateY(20px);

    transition: transform 0.3s ease, opacity 0.6s ease;
}

.shp-gallery-grid img:hover {
    transform: scale(1.03);
}


/* RESPONSIVE */
@media (max-width: 1000px) {
    .shp-gallery-grid { column-count: 3; }
}

@media (max-width: 600px) {
    .shp-gallery-grid { column-count: 2; }
}

/* =========================
   HERO SECTION
========================= */

.shp-hero {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    height: 30vh; /* smaller */
    min-height: 240px;

    background-size: cover;
    background-position: center 0;

    z-index: 0;
}

/* OVERLAY */
.shp-hero-overlay {
    position: absolute;
    top:0;
    left:0;
    right:0;
    bottom:0;

    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.2) 0%,
        rgba(0,0,0,0.5) 20%,
        rgba(0,0,0,0.8) 60%,
        rgba(0,0,0,0.9) 80%,
        rgba(0,0,0,1) 100%
    );
}
/* INNER */
.shp-hero-inner {
    position: relative;
    z-index: 2;
    color: white;
    padding: 80px 40px 40px;
}

/* TITLE */
.shp-gallery-header h1 {
    font-size: 64px;
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.1;

    text-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

/* BACK BUTTON */
.shp-back {
    position: relative;
    top: auto;
    left: auto;
    margin-bottom: 10px;

    z-index: 5; /* above everything */

    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid white;

    font-size: 13px;
    color: white;
    text-decoration: none;

    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* DOWNLOAD BUTTON */
.shp-download-all {
    display: inline-block;
    margin-top: 12px;

    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid white;

    color: white;
    text-decoration: none;
    font-size: 14px;

    background: rgba(0,0,0,0.4);
}

/* HOVER */
.shp-back:hover,
.shp-download-all:hover {
    background: white;
    color: black;
}

/* =========================
   LIGHTBOX
========================= */

#shp-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.shp-lightbox-inner {
    position: relative;
}

.shp-lightbox-inner img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 8px;
}

/* ARROWS */
.shp-prev, .shp-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: white;

    cursor: pointer;
    transition: 0.2s ease;
}

.shp-prev { left: -50px; }
.shp-next { right: -50px; }

.shp-prev:hover, .shp-next:hover {
    background: rgba(255,255,255,0.2);
}

/* MOBILE */
@media (max-width: 768px) {
    .shp-prev,
    .shp-next {
        display: none;
    }
}

/* =========================
   LOGIN FORM
========================= */

.shp-login-form {
    max-width: 420px;
    margin: 80px auto;
    text-align: center;
    color: #fff;
}

.shp-login-form h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.shp-subtext {
    color: #bbb;
    font-size: 14px;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 14px;
}

.shp-subtext::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 140px;
    height: 2px;
    background: #f5c400;
}

.shp-field {
    text-align: left;
    margin-bottom: 20px;
}

.shp-field label {
    font-size: 13px;
    color: #ccc;
}

.shp-field input {
    width: 100%;
    padding: 12px;
    border: 1px solid #333;
    background: transparent;
    color: #fff;
    border-radius: 6px;
}

.shp-field input:focus {
    border-color: #fff;
}

/* BUTTON */
.shp-login-btn {
    background: transparent;
    color: #f5c400;
    border: 1px solid #f5c400;
}

.shp-login-btn:hover {
    background: #f5c400;
    color: #000;
}

/* HIDE HEADER + FOOTER ONLY ON GALLERY */
body[class*="fotos"] header,
body[class*="fotos"] footer {
    display: none !important;
}

/* FORCE BLACK BACKGROUND (FULL OVERRIDE) */
body[class*="fotos"],
body[class*="fotos"] #page,
body[class*="fotos"] .site,
body[class*="fotos"] #content,
body[class*="fotos"] .site-content,
body[class*="fotos"] .site-main {
    background: #000 !important;
}

body[class*="fotos"] {
    background: #000 !important;
}

body.wp-singular.page-template-elementor_canvas {
    background-color: #000 !important;
}

html body.wp-singular.page-template-elementor_canvas {
    background: #000 !important;
}

.shp-gallery-header {
    position: relative;
    z-index: 3;

    max-width: 1200px;
    margin: 35vh auto 0; /* same width + centering as gallery */

    padding: 20px 40px 10px;

    color: white;
}

.shp-gallery-grid img {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.shp-gallery-grid img {
    opacity: 1; /* fallback */
}

.js .shp-gallery-grid img {
    opacity: 0;
}

#shp-lightbox {
    backdrop-filter: blur(12px);
    background: rgba(0,0,0,0.85);
}

#shp-lightbox img {
    animation: zoomIn 0.25s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* LIGHTBOX IMAGE CONTAINER */
.shp-lightbox-inner {
    position: relative;
    display: inline-block;
}

#shp-download-single {
    position: absolute;
    bottom: 15px;
    right: 15px;

    padding: 8px 14px;
    font-size: 14px;
    color: #fff;
    text-decoration: none;

    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 999px;

    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(6px);

    transition: all 0.2s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

#shp-download-single:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.7);
}

