/* ===============================
   HEADER
================================= */

.gallery-header {
    max-width: 720px;
    margin: 0 auto;
}

.gallery-label {
    display: inline-block;

    padding: 6px 16px;

    border-radius: 30px;

    background: rgba(94, 25, 146, 0.08);

    color: #5e1992;

    font-size: 0.75rem;
    font-weight: 600;
}

.gallery-title-main {
    font-size: 2rem;
    font-weight: 800;

    color: #3d105f;

    margin-top: 14px;
}

.gallery-subtitle {
    color: #666;
    line-height: 1.7;
    margin-top: 12px;
}

/* ===============================
   SEARCH
================================= */

.gallery-search-wrap {
    max-width: 700px;
    margin: 0 auto;
}

.gallery-search-box {
    display: flex;

    overflow: hidden;

    border-radius: 18px;

    background: #fff;

    border: 1px solid rgba(94, 25, 146, 0.08);
}

.gallery-search-input {
    flex: 1;

    border: none;
    outline: none;

    padding: 16px 18px;
}

.gallery-search-btn {
    border: none;

    padding: 0 24px;

    background: #5e1992;
    color: white;

    font-weight: 600;
}

/* ===============================
   CARD
================================= */

.gallery-feature-card,
.gallery-card {
    border-radius: 22px;
    overflow: hidden;

    position: relative;
}

.gallery-image-wrap {
    position: relative;
    overflow: hidden;
}

.gallery-image {
    width: 100%;
    height: 420px;

    object-fit: cover;

    transition: 0.4s ease;
}

.gallery-image.small {
    height: 300px;
}

.gallery-overlay {
    position: absolute;
    inset: 0;

    padding: 24px;

    display: flex;
    flex-direction: column;
    justify-content: end;

    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8),
        rgba(0, 0, 0, 0.15),
        transparent
    );

    color: white;
}

.gallery-overlay.small {
    padding: 18px;
}

/* hover */
.gallery-feature-card:hover .gallery-image,
.gallery-card:hover .gallery-image {
    transform: scale(1.05);
}

/* category */
.gallery-category {
    display: inline-block;

    margin-bottom: 10px;

    padding: 5px 12px;

    border-radius: 30px;

    background: rgba(255, 255, 255, 0.18);

    backdrop-filter: blur(6px);

    font-size: 0.72rem;
    font-weight: 600;
}

/* title */
.gallery-name {
    font-weight: 700;
    line-height: 1.5;
}

.gallery-name.small {
    font-size: 0.95rem;
}

/* desc */
.gallery-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

/* buttons */
.gallery-btn,
.gallery-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-top: 12px;

    padding: 10px 18px;

    border-radius: 12px;

    text-decoration: none;

    font-size: 0.85rem;
    font-weight: 600;

    transition: 0.25s ease;
}

.gallery-btn {
    background: white;
    color: #3d105f;
}

.gallery-btn:hover {
    background: #f4f4f4;
}

.gallery-btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
}

.gallery-btn-outline:hover {
    background: white;
    color: #3d105f;
}

/* empty */
.gallery-empty {
    padding: 40px;

    border-radius: 18px;

    background: #fff;

    border: 1px dashed rgba(94, 25, 146, 0.15);
}

@media (max-width: 768px) {
    .gallery-title-main {
        font-size: 1.5rem;
    }

    .gallery-search-box {
        flex-direction: column;
    }

    .gallery-search-btn {
        padding: 14px;
    }

    .gallery-image {
        height: 320px;
    }

    .gallery-image.small {
        height: 260px;
    }
}

.gallery-section-header-v2 {
    display: flex;
    align-items: flex-start;
    gap: 18px;

    margin-bottom: 4rem;
}

.gallery-section-line {
    width: 5px;
    height: 90px;

    border-radius: 999px;

    background: #5e1992;

    flex-shrink: 0;
}

.gallery-section-content {
    max-width: 700px;
}

.gallery-section-kicker {
    display: inline-block;

    margin-bottom: 10px;

    color: #5e1992;

    font-size: 0.75rem;
    font-weight: 700;

    letter-spacing: 2px;
    text-transform: uppercase;
}

.gallery-section-title-v2 {
    margin: 0;

    font-size: 2.3rem;
    font-weight: 800;
    line-height: 1.15;

    color: #2b0d45;
}

.gallery-section-desc {
    margin-top: 14px;

    color: #666;

    font-size: 1rem;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .gallery-section-header-v2 {
        gap: 14px;
    }

    .gallery-section-line {
        height: 70px;
    }

    .gallery-section-title-v2 {
        font-size: 1.7rem;
    }

    .gallery-section-desc {
        font-size: 0.92rem;
    }
}

.gallery-section-simple {
    margin-bottom: 3rem;
}

.gallery-section-simple-label {
    display: inline-block;

    margin-bottom: 10px;

    color: #5e1992;

    font-size: 0.72rem;
    font-weight: 700;

    letter-spacing: 2px;
    text-transform: uppercase;
}

.gallery-section-simple-title {
    margin: 0;

    font-size: 2rem;
    font-weight: 800;

    color: #2b0d45;
}

.gallery-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: fit-content;

    margin-top: 16px;

    padding: 10px 18px;

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.14);

    backdrop-filter: blur(10px);

    border: 1px solid rgba(255, 255, 255, 0.18);

    color: white;

    text-decoration: none;

    font-size: 0.82rem;
    font-weight: 600;

    transition: 0.25s ease;
}

.gallery-btn:hover {
    background: white;
    color: #2b0d45;

    transform: translateY(-2px);
}

.gallery-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: fit-content;

    margin-top: 14px;

    padding: 8px 16px;

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(10px);

    border: 1px solid rgba(255, 255, 255, 0.18);

    color: white;

    text-decoration: none;

    font-size: 0.78rem;
    font-weight: 600;

    transition: 0.25s ease;
}

.gallery-btn-outline:hover {
    background: white;
    color: #2b0d45;

    transform: translateY(-2px);
}

.gallery-search-modern {
    max-width: 820px;
    margin: 0 auto;
}

.gallery-search-inner {
    display: flex;
    align-items: center;

    gap: 14px;

    padding: 12px;

    border-radius: 24px;

    background: #fff;

    border: 1px solid rgba(0, 0, 0, 0.05);

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.gallery-search-icon {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: #f5f5f7;

    font-size: 1rem;

    flex-shrink: 0;
}

.gallery-search-input-modern {
    flex: 1;

    border: none;
    outline: none;

    background: transparent;

    font-size: 0.95rem;

    color: #2b0d45;
}

.gallery-search-input-modern::placeholder {
    color: #999;
}

.gallery-search-btn-modern {
    border: none;

    padding: 12px 20px;

    border-radius: 16px;

    background: #2b0d45;

    color: white;

    font-size: 0.85rem;
    font-weight: 600;

    transition: 0.25s ease;
}

.gallery-search-btn-modern:hover {
    transform: translateY(-2px);

    background: #3d105f;
}

@media (max-width: 768px) {
    .gallery-search-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .gallery-search-icon {
        display: none;
    }

    .gallery-search-btn-modern {
        width: 100%;
    }
}

/* ===============================
   MOBILE RESPONSIVE
================================= */

@media (max-width: 768px) {
    /* section spacing */
    .gallery-page > div,
    .gallery-section-alt {
        margin-bottom: 4rem;
        padding: 60px 0;
    }

    /* header */
    .gallery-title-main {
        font-size: 1.9rem;
        line-height: 1.25;
    }

    .gallery-subtitle {
        font-size: 0.92rem;
        line-height: 1.7;
    }

    /* editorial header */
    .gallery-section-header-v2 {
        gap: 12px;
        margin-bottom: 2.5rem;
    }

    .gallery-section-line {
        width: 4px;
        height: 72px;
    }

    .gallery-section-title-v2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .gallery-section-desc {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    /* search */
    .gallery-search-modern {
        max-width: 100%;
    }

    .gallery-search-inner {
        flex-direction: column;
        align-items: stretch;

        gap: 12px;

        padding: 14px;

        border-radius: 20px;
    }

    .gallery-search-icon {
        display: none;
    }

    .gallery-search-input-modern {
        width: 100%;

        padding: 4px 2px;

        font-size: 0.92rem;
    }

    .gallery-search-btn-modern {
        width: 100%;
        border-radius: 14px;
    }

    /* image */
    .gallery-image {
        height: 300px;
    }

    .gallery-image.small {
        height: 240px;
    }

    /* overlay */
    .gallery-overlay {
        padding: 18px;
    }

    .gallery-overlay.small {
        padding: 14px;
    }

    /* category */
    .gallery-category {
        font-size: 0.68rem;

        padding: 5px 10px;

        margin-bottom: 8px;
    }

    /* title */
    .gallery-name {
        font-size: 1rem;
        line-height: 1.5;
    }

    .gallery-name.small {
        font-size: 0.9rem;
    }

    /* button */
    .gallery-btn,
    .gallery-btn-outline {
        width: 100%;

        justify-content: center;

        padding: 11px 16px;

        font-size: 0.82rem;
    }

    /* empty state */
    .gallery-empty {
        padding: 30px 20px;
    }
}
