/* =========================
   PRIVATE PHOTOGALLERY — PORTFOLIO-LIKE POLISH
========================= */

.page-gallery{
    color: #d6d1c3;
}

/* HERO + PANELS */
.page-gallery .gallery-hero,
.page-gallery .gallery-panel{
    background: linear-gradient(
        180deg,
        rgba(18,18,18,0.96),
        rgba(10,10,10,0.98),
        rgba(6,6,6,0.99)
    );

    border: 1px solid rgba(243,211,124,0.10);

    box-shadow:
        0 10px 28px rgba(0,0,0,0.34),
        inset 0 1px 0 rgba(255,255,255,0.02);
}

/* TITLES */
.page-gallery .main-title,
.page-gallery .section-title{
    color:#ffffff;
    letter-spacing:0.02em;
    text-shadow:
        0 1px 2px rgba(0,0,0,.65),
        0 0 8px rgba(0,0,0,.28);
}

.page-gallery .copy{
    color:rgba(255,255,255,.92);
    line-height:1.7;
}

/* BADGE — matched to portfolio style */
.page-gallery .gallery-badge{
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;

    color: #f3d37c;
    background: rgba(243,211,124,0.08);
    border: 1px solid rgba(243,211,124,0.24);

    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* SECTION HEAD */
.page-gallery .gallery-section-head{
    max-width: 760px;
}

/* GRID */
.page-gallery .gallery-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

/* THUMB = portfolio-card feel */
.page-gallery .gallery-thumb{
    display: block;
    border: 1px solid rgba(243,211,124,0.10);
    padding: 0;
    background: linear-gradient(
        180deg,
        rgba(18,18,18,0.96),
        rgba(10,10,10,0.98),
        rgba(6,6,6,0.99)
    );

    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    position: relative;

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;

    box-shadow:
        0 10px 22px rgba(0,0,0,0.34),
        inset 0 1px 0 rgba(255,255,255,0.02);

    max-width: 250px;
    width: 100%;
    margin: 0 auto;
}

.page-gallery .gallery-thumb:hover{
    transform: translateY(-4px);

    border-color: rgba(243,211,124,0.24);

    box-shadow:
        0 16px 36px rgba(0,0,0,0.40),
        0 0 14px rgba(243,211,124,0.08);
}

.page-gallery .gallery-thumb img{
    width: 250px;
    height: 250px;
    max-width: 100%;
    object-fit: cover;
    display: block;
}

/* MODAL */
.prime-gallery-modal .modal-content{
    background: radial-gradient(
        circle at top,
        #242424 0%,
        #111 45%,
        #000 100%
    );
}

.prime-gallery-close{
    position: absolute;
    top: 18px;
    right: 24px;
    z-index: 20;
    border: none;
    background: none;
    color: #d4af37;
    font-size: 34px;
    line-height: 1;
    opacity: .9;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.prime-gallery-close:hover{
    opacity: 1;
    color: #fff1bf;
}

.prime-gallery-image{
    width: 100%;
    height: 100vh;
    object-fit: contain;
}

.carousel-control-prev,
.carousel-control-next{
    width: 8%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon{
    transform: scale(1.35);
    filter:
        brightness(1.2)
        drop-shadow(0 0 10px rgba(212,175,55,0.65));
}

/* COUNTER */
.prime-gallery-counter{
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    padding: 10px 18px;
    border-radius: 999px;

    color: #ffffff;
    font-weight: 700;
    text-shadow:
        0 1px 2px rgba(0,0,0,0.95),
        0 0 8px rgba(0,0,0,0.75);

    background: rgba(20,20,20,0.72);
    border: 1px solid rgba(212,175,55,0.25);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.45);
}

/* MOBILE */
@media (max-width: 768px){

    .page-gallery .gallery-thumb img{
        width: 100%;
        height: 240px;
    }

    .prime-gallery-counter{
        bottom: 14px;
        font-size: 14px;
        padding: 8px 14px;
    }
}