/* =========================================================
   CONCEPTO INK — COMBINED GALLERY
========================================================= */

.gallery-page {
    padding: 160px 5% 130px;
}

.gallery-heading {
    max-width: 700px;
    margin: 0 auto 45px;
    text-align: center;
}

.gallery-heading h1 {
    font-size: clamp(42px, 6vw, 68px);
    line-height: 1;
    margin: 0 0 18px;
}

.gallery-heading h1 strong {
    color: var(--gold-light);
    font-weight: 400;
}

.gallery-heading p {
    color: rgba(245, 242, 234, 0.65);
    font-size: 14px;
    line-height: 1.8;
    max-width: 560px;
    margin: auto;
}

/* FILTER TABS */

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.gallery-filter {
    padding: 11px 24px;
    border: 1px solid rgba(201, 162, 74, 0.4);
    background: transparent;
    color: rgba(245, 242, 234, 0.7);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.gallery-filter:hover { transform: translateY(-2px); border-color: var(--gold-light); }

.gallery-filter.active {
    background: linear-gradient(120deg, var(--gold-deep), var(--gold), var(--gold-light));
    color: var(--black);
    border-color: transparent;
}

.gallery-filter[data-filter="beauty"].active {
    background: linear-gradient(120deg, var(--pink-deep), var(--pink), var(--pink-light));
}

/* GRID */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    height: 300px;
    padding: 7px;
    border: 1px solid rgba(201, 162, 74, 0.35);
    background: rgba(8, 10, 12, 0.45);
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.gallery-item[data-category="beauty"] {
    border-color: rgba(216, 142, 163, 0.35);
}

.gallery-item.hidden { display: none; }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.6s ease;
}

.gallery-item:hover {
    transform: translateY(-8px);
    border-color: var(--gold-light);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4), 0 0 25px rgba(201, 162, 74, 0.14);
}

.gallery-item[data-category="beauty"]:hover {
    border-color: var(--pink-light);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4), 0 0 25px rgba(216, 142, 163, 0.18);
}

.gallery-item:hover img { transform: scale(1.06); filter: brightness(1.08) contrast(1.05); }

.gallery-item-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    padding: 5px 12px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: rgba(8, 10, 12, 0.75);
    color: var(--gold-light);
    border: 1px solid rgba(201, 162, 74, 0.5);
}

.gallery-item[data-category="beauty"] .gallery-item-badge {
    color: var(--pink-light);
    border-color: rgba(216, 142, 163, 0.55);
}

.gallery-item-overlay {
    position: absolute;
    inset: 7px;
    display: flex;
    align-items: flex-end;
    padding: 16px;
    background: linear-gradient(0deg, rgba(8, 10, 12, 0.85) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay span { font-size: 12px; font-weight: 700; color: var(--white); letter-spacing: 0.5px; }

/* LIGHTBOX */

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    background: rgba(4, 6, 8, 0.95);
    backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.gallery-lightbox.active { opacity: 1; visibility: visible; }

.gallery-lightbox-stage {
    position: relative;
    width: min(900px, 88vw);
    height: min(750px, 82vh);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border: 1px solid rgba(201, 162, 74, 0.5);
    background: #111416;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.65);
    transform: scale(0.92);
    transition: transform 0.4s ease;
}

.gallery-lightbox.active .gallery-lightbox-stage { transform: scale(1); }

.gallery-lightbox-stage img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.gallery-counter {
    position: absolute;
    left: 50%;
    bottom: -42px;
    transform: translateX(-50%);
    padding: 7px 16px;
    color: var(--white);
    background: rgba(8, 10, 12, 0.7);
    border: 1px solid rgba(201, 162, 74, 0.35);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    white-space: nowrap;
}

.gallery-lightbox-close,
.gallery-lightbox-prev,
.gallery-lightbox-next {
    position: absolute;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(201, 162, 74, 0.55);
    color: var(--gold-light);
    background: rgba(8, 10, 12, 0.7);
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover {
    color: var(--black);
    background: var(--gold);
}

.gallery-lightbox-close { top: -60px; right: 0; }
.gallery-lightbox-prev { left: -62px; top: 50%; transform: translateY(-50%); }
.gallery-lightbox-next { right: -62px; top: 50%; transform: translateY(-50%); }

body.gallery-open { overflow: hidden; }

@media (max-width: 1100px) {
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 780px) {
    .gallery-page { padding: 130px 5% 100px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .gallery-item { height: 240px; }
    .gallery-lightbox-prev { left: 10px; }
    .gallery-lightbox-next { right: 10px; }
    .gallery-lightbox-close { top: 10px; right: 10px; }
    .gallery-counter { bottom: 12px; }
    .gallery-lightbox-stage { width: 94vw; height: 74vh; }
}

@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item { height: 320px; }
}
