/* =========================================================
   ARIYANA GALLERY PAGE
========================================================= */

.aryana-gallery-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 20px 70px;
    box-sizing: border-box;
    direction: rtl;
    font-family: "ramin", sans-serif;
    color: #666666;
}

/* =========================================================
   ARIYANA GALLERY HERO
========================================================= */

.aryana-gallery-hero {
    width: 100vw;
    min-height: 300px;
    margin-top: 0;
    margin-bottom: 55px;
    margin-right: calc(50% - 50vw);
    padding: 25px 20px 75px;
    box-sizing: border-box;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    direction: rtl;
    text-align: center;
    background:
        linear-gradient(110deg,
            #ff1760 0%,
            #ff4b45 30%,
            #ff6f00 65%,
            #ff9800 100%);
    overflow: hidden;
}

/* =========================================================
   FADE BOTTOM
========================================================= */

.aryana-gallery-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100px;
    background:
        linear-gradient(to bottom,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.25) 35%,
            rgba(255, 255, 255, 0.75) 72%,
            #ffffff 100%);
    pointer-events: none;
}

/* =========================================================
   HERO CONTENT
========================================================= */

.aryana-gallery-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: none;
    transform: translateY(-15px);
    margin: 0 auto;
}

/* =========================================================
   MAIN TITLE
========================================================= */

.aryana-gallery-hero h1 {
    margin: 0;
    padding: 0;
    color: #ffffff;
    font-family: raminb, ramin;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.6;
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.10);
}

/* =========================================================
   HERO SUBTITLE
========================================================= */

.aryana-gallery-hero h2 {
    margin: 5px 0 12px;
    padding: 0;
    color: #ffffff;
    font-family: ramin;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.8;
    text-shadow:
        0 2px 7px rgba(0, 0, 0, 0.10);
}

/* =========================================================
   HERO DESCRIPTION
========================================================= */

.aryana-gallery-hero p {
    max-width: none;
    margin: 0 auto;
    color: #ffffff;
    font-family: ramin;
    font-size: 20px;
    font-weight: 400;
    line-height: 2;
    opacity: 0.96;
    white-space: normal;
    text-shadow:
        0 1px 6px rgba(0, 0, 0, 0.10);
}

/* =========================================================
   TABS WRAPPER
========================================================= */

.aryana-gallery-tabs-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

/* =========================================================
   TABS
========================================================= */

.aryana-gallery-tabs {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    width: auto;
    max-width: 100%;
}

.aryana-gallery-tab {
    appearance: none;
    border: 0;
    background: #fff6eb;
    color: #666666;
    font-family: "ramin";
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

/* Hover */

.aryana-gallery-tab:hover {
    background: #ff9400;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Active */

.aryana-gallery-tab.active {
    background: #ff9400;
    color: #ffffff;
}

/* =========================================================
   ALBUM GRID
========================================================= */

.aryana-gallery-albums {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 34px;
    row-gap: 40px;
    width: 100%;
}

/* =========================================================
   ALBUM CARD
========================================================= */

.aryana-gallery-album {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 28px;
    background: #ffffff;
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.aryana-gallery-album:hover {
    transform: translateY(-6px);
    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.13);
}

/* =========================================================
   ALBUM IMAGE
========================================================= */

.aryana-gallery-album-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 12;
    overflow: hidden;
    background: #f5f5f5;
}

.aryana-gallery-album-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition:
        transform 0.5s ease;
}

/* Zoom */

.aryana-gallery-album:hover .aryana-gallery-album-image {
    transform: scale(1.08);
}

/* =========================================================
   DARK OVERLAY
========================================================= */

.aryana-gallery-album-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    transition:
        background-color 0.3s ease;
}

.aryana-gallery-album:hover .aryana-gallery-album-overlay {
    background: rgba(0, 0, 0, 0.15);
}

/* =========================================================
   ZOOM ICON
========================================================= */

.aryana-gallery-zoom-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.92);
    color: transparent;
    font-size: 0;
    opacity: 0;
    transform: scale(0.75);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;

    /* چهار گوشه نارنجی */
    background-image:
        linear-gradient(#ff9400, #ff9400),
        linear-gradient(#ff9400, #ff9400),
        linear-gradient(#ff9400, #ff9400),
        linear-gradient(#ff9400, #ff9400),
        linear-gradient(#ff9400, #ff9400),
        linear-gradient(#ff9400, #ff9400),
        linear-gradient(#ff9400, #ff9400),
        linear-gradient(#ff9400, #ff9400);

    background-repeat: no-repeat;

    /* ضخامت و طول چهار گوشه */
    background-size:
        8px 3px,
        3px 8px,

        8px 3px,
        3px 8px,

        8px 3px,
        3px 8px,

        8px 3px,
        3px 8px;

    /* موقعیت دقیق و متقارن روی دایره 50px */
    background-position:
        12px 12px,
        12px 12px,

        30px 12px,
        35px 12px,

        12px 35px,
        12px 30px,

        30px 35px,
        35px 30px;
}

.aryana-gallery-album:hover .aryana-gallery-zoom-icon {
    opacity: 1;
    transform: scale(1);
}

/* =========================================================
   ALBUM INFORMATION
========================================================= */

.aryana-gallery-album-info {
    padding: 12px 20px 12px;
    text-align: center;
    background: #ffffff;
}

.aryana-gallery-album-title {
    margin: 0;
    color: #555555;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
}

.aryana-gallery-album-count {
    display: block;
    margin-top: 2px;
    color: #999999;
    font-size: 13px;
}

/* =========================================================
   LIGHTBOX
========================================================= */

.aryana-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 90px;
    box-sizing: border-box;
    background: #fff6eb;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.aryana-gallery-lightbox.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* =========================================================
   HIDE PAGE SCROLLBAR WHEN LIGHTBOX IS OPEN
========================================================= */

html:has(.aryana-gallery-lightbox.open) {
    scrollbar-width: none;
}

html:has(.aryana-gallery-lightbox.open)::-webkit-scrollbar {
    display: none;
}

/* =========================================================
   LIGHTBOX CONTENT
========================================================= */

.aryana-gallery-lightbox-content {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: default;
}

/* =========================================================
   LIGHTBOX IMAGE
========================================================= */

.aryana-gallery-lightbox-image {
    display: block;
    width: auto;
    height: auto;
    max-width: calc(100vw - 220px);
    max-height: calc(100vh - 190px);
    object-fit: contain;
    border-radius: 4px;
}

/* =========================================================
   LIGHTBOX INFO
========================================================= */

.aryana-gallery-lightbox-info {
    width: 100%;
    margin-top: 14px;
    text-align: center;
    color: #555555;
}

.aryana-gallery-lightbox-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.8;
}

.aryana-gallery-lightbox-counter {
    margin-top: 3px;
    direction: ltr;
    font-family: Arial, sans-serif;
    font-size: 13px;
    color: #999999;
}

/* =========================================================
   CLOSE BUTTON
========================================================= */

.aryana-gallery-lightbox-close {
    position: fixed;
    top: 24px;
    right: 30px;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #eeeeee;
    color: #777777;
    font-family: Arial, sans-serif;
    font-size: 34px;
    font-weight: 300;
    line-height: 48px;
    text-align: center;
    cursor: pointer;
    z-index: 100001;
    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.35s ease;
}

/* Hover = چرخش 90 درجه از بالا به پایین */

.aryana-gallery-lightbox-close:hover {
    background: #ff9400;
    color: #ffffff;
    transform: rotate(90deg);
}

/* =========================================================
   LIGHTBOX ARROWS
========================================================= */

.aryana-gallery-lightbox-arrow {
    position: fixed;
    top: 50%;
    width: 52px;
    height: 52px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #eeeeee;
    color: #777777;
    font-family: Arial, sans-serif;
    font-size: 38px;
    font-weight: 400;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transform: translateY(-50%);
    z-index: 100000;
    box-sizing: border-box;
    transition: transform 0.15s ease;
}

/* فلش سمت راست پنجره Popup */
.aryana-gallery-lightbox-next {
    right: 44px;
    left: auto;
}

/* فلش سمت چپ پنجره Popup */
.aryana-gallery-lightbox-prev {
    left: 44px;
    right: auto;
}

/* Hover + Click */
.aryana-gallery-lightbox-arrow:hover,
.aryana-gallery-lightbox-arrow:active {
    background: #ff9400;
    color: #ffffff;
    transform: translateY(-50%) scale(1.08);
}

/* =========================================================
   LIGHTBOX ARROW ICON
========================================================= */

.aryana-gallery-lightbox-arrow span {
    display: block;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    font-size: 38px;
    font-weight: 400;
    line-height: 1;
    color: inherit;
    direction: ltr;
}

/* تنظیم موقعیت خود علامت فلش */

/* فلش سمت چپ */
#aryanaGalleryLightboxPrev span {
    transform: translate(-1px, -2px);
}

/* فلش سمت راست */
#aryanaGalleryLightboxNext span {
    transform: translate(1.5px, -2px);
}

/* =========================================================
   MOBILE / TABLET
========================================================= */

@media (max-width: 1000px) {

    .aryana-gallery-albums {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px;
    }

    .aryana-gallery-lightbox {
        padding: 65px 75px;
    }

    .aryana-gallery-lightbox-image {
        max-width: calc(100vw - 160px);
        max-height: calc(100vh - 180px);
    }

    .aryana-gallery-lightbox-next {
        right: 18px;
    }

    .aryana-gallery-lightbox-prev {
        left: 18px;
    }

}

@media (max-width: 700px) {

    .aryana-gallery-hero {
        margin-bottom: 35px;
    }

    .aryana-gallery-page {
        padding:
            25px 15px 50px;
    }

    .aryana-gallery-hero h1 {
        font-size: 33px;
    }

    .aryana-gallery-hero h2 {
        font-size: 20.5px;
    }

    .aryana-gallery-hero p {
        font-size: 17px;
    }

    .aryana-gallery-tabs {
        justify-content: center;
        gap: 14px;
    }

    .aryana-gallery-tab {
        padding:
            14px 8px;
        font-size: 14px;
    }

    .aryana-gallery-tabs-wrapper {
        margin-bottom: 33px;
    }

    .aryana-gallery-albums {
        grid-template-columns: 1fr;
        width: 95%;
        margin: 0 auto 80px;
        grid-template-columns: 1fr;
        row-gap: 38px;
    }

    .aryana-gallery-album-title {
        font-size: 17px;
    }

    .aryana-gallery-lightbox {
        padding:
            65px 20px 80px;
    }

    .aryana-gallery-lightbox-image {
        max-width: calc(100vw - 40px);
        max-height: calc(100vh - 190px);
    }

    .aryana-gallery-lightbox-close {
        top: 15px;
        right: 15px;
        width: 44px;
        height: 44px;
        line-height: 44px;
        font-size: 30px;
    }

    .aryana-gallery-lightbox-arrow {
        width: 46px;
        height: 46px;
        font-size: 36px;
    }

    .aryana-gallery-lightbox-next {
        right: 10px;
    }

    .aryana-gallery-lightbox-prev {
        left: 10px;
    }

    .aryana-gallery-lightbox-info {
        margin-top: 10px;
    }

    .aryana-gallery-lightbox-title {
        font-size: 16px;
    }

}

/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .aryana-gallery-album {
        border-radius: 24px;
    }

    .aryana-gallery-album-image-wrapper {
        aspect-ratio: 16 / 12;
    }

}

html,
body {
    overflow-x: hidden;
}