/* =====================================================
   EALATHU THIRUCHENTHUR MURUGAN TEMPLE
   GALLERY PAGE
===================================================== */


/* =====================================================
   VARIABLES
===================================================== */

:root {

    --background:
        #FFF4E3;

    --background-light:
        #FFF9F0;

    --primary:
        #7A1F2B;

    --primary-dark:
        #5E1721;

    --secondary:
        #D96B27;

    --accent:
        #E5A72A;

    --accent-light:
        #F2C65A;

    --text:
        #3B2520;

    --text-soft:
        #6F5147;

    --white:
        #FFFFFF;

    --card:
        #FFFDF8;

    --border:
        rgba(122,31,43,0.15);

    --shadow:
        rgba(59,37,32,0.10);

}


/* =====================================================
   RESET
===================================================== */

html {

    scroll-behavior: smooth;

}


*,
*::before,
*::after {

    box-sizing: border-box;

}


body {

    margin: 0;

    padding: 0;

    overflow-x: hidden;

}


/* =====================================================
   HERO
===================================================== */

.gallery-hero {

    position: relative;

    min-height: 275px;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    background:

        radial-gradient(
            circle at 50% 0%,
            rgba(229,167,42,0.16),
            transparent 40%
        ),

        linear-gradient(
            145deg,
            #7A1F2B,
            #641823
        );

}


.gallery-hero::before {

    content: "";

    position: absolute;

    top: -150px;

    left: 50%;

    width: 600px;

    height: 300px;

    transform:
        translateX(-50%);

    background:
        radial-gradient(
            ellipse,
            rgba(229,167,42,0.12),
            transparent 70%
        );

}


.gallery-hero-content {

    position: relative;

    z-index: 2;

    text-align: center;

}


.gallery-kicker {

    display: block;

    color:
        #F8D66C;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 3px;

}


.gallery-symbol {

    margin:
        12px 0 8px;

    color:
        #F0C04A;

    font-size: 20px;

}


.gallery-hero h1 {

    margin: 0;

    color:
        #FFFFFF;

    font-family:
        "Noto Sans Tamil",
        "Latha",
        sans-serif;

    font-size:
        clamp(30px, 4vw, 46px);

    line-height: 1.35;

    font-weight: 800;

}


.gallery-hero p {

    margin:
        6px 0 0;

    color:
        rgba(255,255,255,0.78);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 11px;

    letter-spacing: 1.5px;

}


/* =====================================================
   MAIN SECTION
===================================================== */

.gallery-section {

    min-height: 700px;

    padding:
        70px 5%
        90px;

    background:

        radial-gradient(
            circle at 50% 0%,
            rgba(229,167,42,0.08),
            transparent 30%
        ),

        var(--background);

}


.gallery-container {

    width: 100%;

    max-width: 1450px;

    margin:
        0 auto;

}


/* =====================================================
   HEADING
===================================================== */

.gallery-heading {

    margin-bottom:
        35px;

    text-align:
        center;

}


.gallery-heading > span {

    color:
        var(--secondary);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size:
        8px;

    font-weight:
        700;

    letter-spacing:
        3px;

}


.gallery-heading h2 {

    margin:
        8px 0 0;

    color:
        var(--primary);

    font-family:
        "Noto Sans Tamil",
        "Latha",
        sans-serif;

    font-size:
        clamp(24px, 3vw, 34px);

    line-height:
        1.4;

    font-weight:
        800;

}


.heading-line {

    width:
        65px;

    height:
        3px;

    margin:
        15px auto 0;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--accent),
            transparent
        );

}


/* =====================================================
   FILTERS
===================================================== */

.gallery-filters {

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        22px;

    margin-bottom:
        45px;

}


.gallery-search,
.gallery-date {

    width:
        350px;

    height:
        58px;

    display:
        flex;

    align-items:
        center;

    border:
        1px solid
        rgba(122,31,43,0.18);

    border-radius:
        12px;

    background:
        rgba(255,255,255,0.65);

    box-shadow:
        0 8px 25px
        rgba(59,37,32,0.05);

    transition:
        border-color .25s ease,
        box-shadow .25s ease;

}


.gallery-search:focus-within,
.gallery-date:focus-within {

    border-color:
        var(--accent);

    box-shadow:
        0 0 0 3px
        rgba(229,167,42,0.10);

}


.search-icon,
.date-icon {

    margin-left:
        20px;

    color:
        var(--accent);

    font-family:
        Arial,
        sans-serif;

    font-size:
        22px;

}


.gallery-search input,
.gallery-date input {

    width:
        100%;

    height:
        100%;

    padding:
        0 16px;

    border:
        0;

    outline:
        none;

    color:
        var(--text);

    background:
        transparent;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size:
        14px;

}


.gallery-search input::placeholder {

    color:
        rgba(59,37,32,0.45);

}


.gallery-date input::-webkit-calendar-picker-indicator {

    cursor:
        pointer;

    opacity:
        0.7;

}


/* =====================================================
   ALBUM GRID
   DESKTOP = 4 CARDS
===================================================== */

.album-grid {

    display:
        grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap:
        24px;

}


/* =====================================================
   ALBUM CARD
===================================================== */

.album-card {

    min-width:
        0;

    overflow:
        hidden;

    border:
        1px solid
        var(--border);

    border-radius:
        13px;

    background:
        var(--card);

    box-shadow:
        0 10px 30px
        var(--shadow);

    transition:
        transform .30s ease,
        border-color .30s ease,
        box-shadow .30s ease;

}


.album-card:hover {

    transform:
        translateY(-5px);

    border-color:
        rgba(122,31,43,0.35);

    box-shadow:
        0 18px 40px
        rgba(59,37,32,0.14);

}


.album-link {

    display:
        block;

    color:
        inherit;

    text-decoration:
        none;

}


/* =====================================================
   ALBUM IMAGE
===================================================== */

.album-image {

    position:
        relative;

    width:
        100%;

    height:
        215px;

    overflow:
        hidden;

    background:
        #EBDCC7;

}


.album-image img {

    display:
        block;

    width:
        100%;

    height:
        100%;

    object-fit:
        cover;

    transition:
        transform .55s ease;

}


.album-card:hover
.album-image img {

    transform:
        scale(1.06);

}


/* =====================================================
   IMAGE OVERLAY
===================================================== */

.album-overlay {

    position:
        absolute;

    inset:
        0;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    background:
        rgba(59,37,32,0.42);

    opacity:
        0;

    transition:
        opacity .30s ease;

}


.album-card:hover
.album-overlay {

    opacity:
        1;

}


.album-view {

    padding:
        9px 15px;

    color:
        #FFFFFF;

    border:
        1px solid
        rgba(255,255,255,0.55);

    border-radius:
        25px;

    background:
        rgba(122,31,43,0.80);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size:
        8px;

    font-weight:
        700;

    letter-spacing:
        1px;

}


.album-view strong {

    margin-left:
        5px;

    color:
        #F5CC56;

    font-size:
        13px;

}


/* =====================================================
   PHOTO COUNT
===================================================== */

.album-photo-count {

    position:
        absolute;

    top:
        11px;

    right:
        11px;

    padding:
        6px 9px;

    color:
        #FFFFFF;

    border:
        1px solid
        rgba(255,255,255,0.28);

    border-radius:
        20px;

    background:
        rgba(59,37,32,0.76);

    font-family:
        Arial,
        sans-serif;

    font-size:
        8px;

}


.album-photo-count span {

    color:
        #F5CC56;

    margin-right:
        3px;

}


/* =====================================================
   CARD CONTENT
===================================================== */

.album-content {

    padding:
        17px 18px
        19px;

    display:
        flex;

    flex-direction:
        column;

    min-height:
        205px;

}


.album-date {

    display:
        flex;

    align-items:
        center;

    gap:
        6px;

    color:
        var(--secondary);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size:
        9px;

    font-weight:
        700;

}


.album-content h3 {

    margin:
        9px 0 13px;

    color:
        var(--primary);

    font-family:
        "Noto Sans Tamil",
        "Latha",
        sans-serif;

    font-size:
        18px;

    font-weight:
        800;

    line-height:
        1.45;

    min-height:
        52px;

}


.album-button {

    position:
        relative;

    width:
        100%;

    min-height:
        54px;

    margin-top:
        auto;

    padding:
        7px 7px 7px 18px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    flex-shrink:
        0;

    box-sizing:
        border-box;

    overflow:
        hidden;

    border:
        1px solid
        rgba(216,154,36,0.45);

    border-radius:
        13px;

    color:
        #FFFFFF;

    background:
        linear-gradient(
            135deg,
            #651522 0%,
            #821D2D 48%,
            #9B2930 100%
        );

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size:
        10px;

    font-weight:
        800;

    box-shadow:
        0 10px 24px
        rgba(59,37,32,0.16),

        inset
        0 1px 0
        rgba(255,255,255,0.12);

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;

}


.album-button::before {

    content:
        "";

    position:
        absolute;

    top:
        0;

    left:
        -120%;

    width:
        70%;

    height:
        100%;

    background:
        linear-gradient(
            105deg,
            transparent,
            rgba(255,255,255,0.18),
            transparent
        );

    transform:
        skewX(-20deg);

    transition:
        left .65s ease;

    pointer-events:
        none;

}


.album-button span {

    position:
        relative;

    z-index:
        2;

    width:
        40px;

    height:
        40px;

    min-width:
        40px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    margin-left:
        12px;

    border:
        1px solid
        rgba(255,255,255,0.45);

    border-radius:
        10px;

    color:
        #5E1721;

    background:
        linear-gradient(
            145deg,
            #FFF4B7,
            #F5D36B,
            #DFA52C
        );

    font-family:
        Arial,
        sans-serif;

    font-size:
        18px;

    font-weight:
        800;

    line-height:
        1;

    box-shadow:
        0 6px 15px
        rgba(59,37,32,0.22),

        inset
        0 1px 0
        rgba(255,255,255,0.85);

    transition:
        transform .3s ease,
        box-shadow .3s ease;

}


.album-button span::before {

    content:
        "";

    position:
        absolute;

    inset:
        4px;

    border:
        1px solid
        rgba(94,23,33,0.18);

    border-radius:
        7px;

    pointer-events:
        none;

}


.album-card:hover
.album-button {

    transform:
        translateY(-2px);

    border-color:
        rgba(229,167,42,0.85);

    box-shadow:
        0 15px 32px
        rgba(59,37,32,0.23),

        0 0 20px
        rgba(229,167,42,0.10);

}


.album-card:hover
.album-button::before {

    left:
        135%;

}


.album-card:hover
.album-button span {

    transform:
        translateX(4px);

    box-shadow:
        0 9px 20px
        rgba(59,37,32,0.28),

        0 0 14px
        rgba(245,211,107,0.22);

}


/* =====================================================
   NO RESULT
===================================================== */

.gallery-no-result {

    display:
        none;

    padding:
        70px 20px;

    text-align:
        center;

}


.gallery-no-result div {

    color:
        var(--accent);

    font-size:
        30px;

}


.gallery-no-result h3 {

    margin:
        12px 0 5px;

    color:
        var(--primary);

    font-family:
        Arial,
        sans-serif;

}


.gallery-no-result p {

    margin:
        0;

    color:
        var(--text-soft);

    font-family:
        "Noto Sans Tamil",
        "Latha",
        sans-serif;

    font-size:
        11px;

}


/* =====================================================
   PAGINATION
===================================================== */

.gallery-pagination {

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        16px;

    margin-top:
        45px;

}


.pagination-btn {

    min-width:
        110px;

    height:
        40px;

    padding:
        0 15px;

    color:
        var(--primary);

    border:
        1px solid
        rgba(122,31,43,0.30);

    border-radius:
        7px;

    background:
        #FFFFFF;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size:
        9px;

    font-weight:
        700;

    cursor:
        pointer;

    transition:
        all .25s ease;

}


.pagination-btn:hover:not(:disabled) {

    color:
        #FFFFFF;

    border-color:
        var(--primary);

    background:
        var(--primary);

}


.pagination-btn:disabled {

    opacity:
        0.35;

    cursor:
        not-allowed;

}


.page-info {

    min-width:
        50px;

    color:
        var(--primary);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size:
        10px;

    font-weight:
        800;

    text-align:
        center;

}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1100px) {

    .album-grid {

        grid-template-columns:
            repeat(3, 1fr);

    }

}


@media (max-width: 800px) {

    .album-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .album-image {

        height:
            205px;

    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

    .gallery-hero {

        min-height:
            235px;

    }


    .gallery-section {

        padding:
            55px 5%
            75px;

    }


    .gallery-filters {

        flex-direction:
            column;

        gap:
            12px;

        margin-bottom:
            32px;

    }


    .gallery-search,
    .gallery-date {

        width:
            100%;

        height:
            56px;

    }


    .album-grid {

        grid-template-columns:
            repeat(2, 1fr);

        gap:
            10px;

    }


    .album-image {

        height:
            145px;

    }


    .album-content {

        padding:
            12px;

        min-height:
            185px;

        display:
            flex;

        flex-direction:
            column;

    }


    .album-content h3 {

        margin:
            7px 0 9px;

        font-size:
            14px;

        min-height:
            44px;

    }


    .album-date {

        font-size:
            7px;

    }


    .album-button {

        width:
            100%;

        min-height:
            48px;

        margin-top:
            auto;

        padding:
            6px 6px 6px 14px;

        font-size:
            8px;

    }


    .album-button span {

        width:
            36px;

        height:
            36px;

        min-width:
            36px;

        margin-left:
            8px;

        font-size:
            16px;

    }


    .album-photo-count {

        top:
            7px;

        right:
            7px;

        padding:
            5px 7px;

        font-size:
            7px;

    }


    .gallery-pagination {

        gap:
            8px;

        margin-top:
            35px;

    }


    .pagination-btn {

        min-width:
            95px;

        height:
            38px;

        font-size:
            8px;

    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 400px) {

    .album-image {

        height:
            130px;

    }


    .album-content h3 {

        font-size:
            13px;

    }

}