/* ==================================================
   BASIC JUDO - GALLERY
================================================== */

/* 01 - Page Base
-------------------------------------------------- */

.bj-gallery-page,
.bj-gallery-show-page {
    background: #f7f4ef;
}

/* 02 - Index Section
-------------------------------------------------- */

.bj-gallery-index-section,
.bj-gallery-show-section {
    padding: 90px 0 120px;
    background:
        radial-gradient(circle at top right, rgba(245, 180, 0, 0.08), transparent 34%),
        linear-gradient(180deg, #f8f5ef 0%, #f1ece4 100%);
}

.bj-gallery-section-head {
    max-width: 760px;
    margin-bottom: 48px;
}

.bj-gallery-section-head h2 {
    margin: 18px 0;
    color: #111827;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.bj-gallery-section-head p {
    margin: 0;
    color: #64748b;
    font-size: 16px;
    line-height: 1.8;
}

/* 03 - Album Grid
-------------------------------------------------- */

.bj-gallery-album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.bj-gallery-album-card {
    max-width: 430px;
}

.bj-gallery-album-grid--related {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bj-gallery-album-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    color: inherit;
    text-decoration: none;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.07);
    transition: 0.3s ease;
}

.bj-gallery-album-card:hover {
    transform: translateY(-8px);
    border-color: rgba(245, 180, 0, 0.45);
    box-shadow: 0 34px 90px rgba(15, 23, 42, 0.12);
}

.bj-gallery-album-card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 11;
    background: #111827;
}

.bj-gallery-album-card__image::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(0, 0, 0, 0.42), transparent 58%),
        radial-gradient(circle at top right, rgba(245, 180, 0, 0.16), transparent 32%);
    pointer-events: none;
}

.bj-gallery-album-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, opacity 0.45s ease;
}

.bj-gallery-album-card:hover .bj-gallery-album-card__image img {
    transform: scale(1.06);
    opacity: 0.94;
}

.bj-gallery-album-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(255, 255, 255, 0.2);
    background:
        radial-gradient(circle at top left, rgba(245, 180, 0, 0.16), transparent 34%),
        linear-gradient(135deg, #082a57, #061b3a);
    font-size: 90px;
    font-weight: 900;
}

.bj-gallery-album-card__badge {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 2;
    padding: 8px 12px;
    color: #061b3a;
    background: #f5b400;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.bj-gallery-album-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 28px;
}

.bj-gallery-album-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.bj-gallery-album-card__meta span {
    display: inline-flex;
    padding: 7px 11px;
    color: #9a6b22;
    background: #f5efe4;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bj-gallery-album-card h3 {
    margin: 0 0 14px;
    color: #111827;
    font-size: 26px;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.bj-gallery-album-card p {
    margin: 0 0 22px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.75;
}

.bj-gallery-album-card strong {
    display: inline-flex;
    margin-top: auto;
    color: #c8102e;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* 04 - Show Intro
-------------------------------------------------- */

.bj-gallery-show-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.bj-gallery-show-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.bj-gallery-show-intro {
    max-width: 980px;
    margin-bottom: 52px;
    padding: 38px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    box-shadow: 0 22px 65px rgba(15, 23, 42, 0.07);
}

.bj-gallery-show-intro div {
    color: #475569;
    font-size: 16px;
    line-height: 1.9;
}

/* 05 - Photo Grid
-------------------------------------------------- */

.bj-gallery-photo-grid {
    columns: 3 280px;
    column-gap: 22px;
}

.bj-gallery-photo-card {
    position: relative;
    display: block;
    overflow: hidden;
    margin-bottom: 22px;
    color: #fff;
    text-decoration: none;
    background: #111827;
    border-radius: 22px;
    break-inside: avoid;
    box-shadow: 0 20px 55px rgba(15, 23, 42, 0.12);
    cursor: zoom-in;
}

.bj-gallery-photo-card::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background:
        linear-gradient(to top, rgba(0, 0, 0, 0.62), transparent 58%);
    transition: opacity 0.3s ease;
}

.bj-gallery-photo-card:hover::after {
    opacity: 1;
}

.bj-gallery-photo-card img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.45s ease, filter 0.45s ease;
}

.bj-gallery-photo-card:hover img {
    transform: scale(1.045);
    filter: brightness(0.92);
}

.bj-gallery-photo-card span {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    opacity: 0;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.35;
    transform: translateY(8px);
    transition: 0.3s ease;
}

.bj-gallery-photo-card:hover span {
    opacity: 1;
    transform: translateY(0);
}

/* 06 - Related
-------------------------------------------------- */

.bj-gallery-related {
    margin-top: 90px;
}

/* 07 - Empty / Pagination
-------------------------------------------------- */

.bj-empty-state {
    padding: 56px 28px;
    text-align: center;
    background: #fff;
    border: 1px dashed rgba(15, 23, 42, 0.18);
    border-radius: 24px;
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.06);
}

.bj-empty-state h3 {
    margin: 0 0 12px;
    color: #111827;
    font-size: 26px;
}

.bj-empty-state p {
    margin: 0;
    color: #64748b;
}

.bj-pagination {
    margin-top: 46px;
}

/* 08 - Tablet Responsive
-------------------------------------------------- */

@media (max-width: 1100px) {
    .bj-gallery-album-grid,
    .bj-gallery-album-grid--related {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bj-gallery-photo-grid {
        columns: 2 260px;
    }
}

/* 09 - Mobile Responsive
-------------------------------------------------- */

@media (max-width: 768px) {
    .bj-gallery-index-section,
    .bj-gallery-show-section {
        padding: 64px 0 88px;
    }

    .bj-gallery-section-head {
        margin-bottom: 34px;
    }

    .bj-gallery-album-grid,
    .bj-gallery-album-grid--related {
        grid-template-columns: 1fr;
    }

    .bj-gallery-album-card {
        border-radius: 20px;
    }

    .bj-gallery-album-card__content {
        padding: 24px;
    }

    .bj-gallery-album-card h3 {
        font-size: 23px;
    }

    .bj-gallery-show-intro {
        padding: 26px;
        border-radius: 20px;
    }

    .bj-gallery-photo-grid {
        columns: 1;
    }

    .bj-gallery-photo-card {
        border-radius: 18px;
    }

    .bj-gallery-related {
        margin-top: 64px;
    }
}

/* Show-blade için düzeltme
-------------------------------------------------- */
/* ==================================================
   GALLERY V2 - SHOW POLISH
================================================== */

.bj-gallery-show-intro {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 56px;
    padding: 44px 48px;
}

.bj-gallery-show-intro .bj-section-label {
    margin-bottom: 18px;
}

.bj-gallery-photo-grid {
    max-width: 1120px;
    margin: 0 auto;
    columns: 3 300px;
    column-gap: 24px;
}

.bj-gallery-photo-card {
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bj-gallery-photo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 34px 90px rgba(15, 23, 42, 0.2);
}

.bj-gallery-photo-card::before {
    content: "Büyüt";
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    opacity: 0;
    padding: 8px 12px;
    color: #061b3a;
    background: #f5b400;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transform: translateY(-6px);
    transition: 0.3s ease;
}

.bj-gallery-photo-card:hover::before {
    opacity: 1;
    transform: translateY(0);
}

.bj-gallery-show-section {
    position: relative;
}

.bj-gallery-show-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 180px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #f5b400, transparent);
    transform: translateX(-50%);
}

@media (max-width: 768px) {
    .bj-gallery-show-intro {
        padding: 28px;
        margin-bottom: 38px;
    }

    .bj-gallery-photo-grid {
        columns: 1;
    }
}

/* ==================================================
   GLIGHTBOX - GALLERY PREMIUM VIEW
================================================== */

.glightbox-container .gslide-image img {
    max-width: 48vw;
    max-height: 48vh;
    object-fit: contain;
    border-radius: 18px;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
}

.glightbox-container .gslide-image img.zoomed {
    max-width: none;
    max-height: none;
    border-radius: 10px;
}

.glightbox-container .gslide-description {
    background: rgba(5, 8, 16, 0.86);
    color: #fff;
    border-radius: 0 0 18px 18px;
}

.glightbox-container .gslide-title {
    color: #fff;
    font-weight: 800;
}

.glightbox-container .gslide-desc {
    color: rgba(255, 255, 255, 0.72);
}
