﻿
/* GENERAL */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Georgia, sans-serif;
    background: linear-gradient( to bottom, #fcfaf8, #f6efe7 );
    color: #333;
}

/* EVENTS PAGE */


.events-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 25px;
}


/* HEADING */

.events-heading {
    text-align: center;
    margin-bottom: 35px;
}
    .events-heading h1 {
        color: #80533e;
        font-size: 34px;
        font-weight: normal;
        letter-spacing: 1px;
    }
    .events-heading p {
        color: #81766d;
        font-size: 15px;
        line-height: 1.8;
    }

.hidden-event-filter {
    display: none;
}
/* =========================================
   EVENT CATEGORY DROPDOWN
========================================= */

.event-filter {
    text-align: center;
    margin: 30px 0 40px;
}

.filter-dropdown {
    width: 260px;
    padding: 13px 42px 13px 18px;
    background-color: #fffaf3;
    color: #80533e;
    border: 1px solid #c9a58c;
    border-radius: 30px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2380533e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 17px center;
    box-shadow: 0 3px 10px rgba(128, 83, 62, 0.08);
    transition: all 0.3s ease;
}

    .filter-dropdown:hover {
        border-color: #80533e;
        background-color: #f7eee4;
        box-shadow: 0 5px 14px rgba(128, 83, 62, 0.15);
    }

    .filter-dropdown:focus {
        border-color: #71865b;
        box-shadow: 0 0 0 3px rgba(113, 134, 91, 0.15);
    }

    .filter-dropdown option {
        background: #fffaf3;
        color: #493b32;
        padding: 10px;
    }

/* EVENT GRID */

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* EVENT CARDS */

.event-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #eadfd1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(100, 70, 45, 0.08);
    transition: all 0.3s ease;
}

    .event-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(100, 70, 45, 0.14);
    }

/* IMAGE */

.event-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #eee9df;
}

.event-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #eae7dc;
    color: #71865b;
    letter-spacing: 2px;
    font-size: 17px;
}

    .image-placeholder small {
        margin-top: 8px;
        color: #8a765c;
        font-size: 10px;
        letter-spacing: 1px;
    }

/* CONTENT */

.event-content {
    padding: 20px;
}
/* EVENT CATEGORY */

.event-category {
    color: #71865b;
    letter-spacing: 1.2px;
}


.event-content h2 {
    color: #80533e;
}


.event-meta {
    color: #999;
    font-size: 12px;
    line-height: 1.8;
}

.event-description {
    color: #6e6259;
}

/* NO EVENTS */

.no-events {
    display: block;
    text-align: center;
    padding: 30px;
    color: #8a765c;
}

/* RESPONSIVE */

@media screen and (max-width: 900px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 600px) {
    .events-page {
        padding: 30px 15px;
    }

    .events-heading h1 {
        font-size: 25px;
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .event-image {
        height: 230px;
    }
}
/* EVENT PHOTO GALLERY */

.event-gallery {
    width: 100%;
    background: #eee9df;
}

.event-main-photo {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    cursor: pointer;
}



.event-video-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.event-thumbnails img {
    display: block;
    width: 100%;
    height: 85px;
    object-fit: cover;
    cursor: pointer;
}

.event-gallery img:hover {
    opacity: 0.85;
}

.image-placeholder {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #eae7dc;
    color: #71865b;
    letter-spacing: 2px;
}

/* PHOTO LIGHTBOX */

.event-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.92);
    align-items: center;
    justify-content: center;
}

.event-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 85%;
    text-align: center;
}

    .event-lightbox-content img {
        max-width: 100%;
        max-height: 80vh;
        object-fit: contain;
    }

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    border: none;
    background: rgba(255,255,255,0.2);
    color: white;
    font-size: 28px;
    padding: 8px 15px;
    cursor: pointer;
}

.lightbox-close {
    top: -45px;
    right: 0;
}

.lightbox-prev {
    left: -55px;
    top: 45%;
}

.lightbox-next {
    right: -55px;
    top: 45%;
}

@media screen and (max-width: 600px) {
    .event-main-photo {
        height: 210px;
    }

    .event-thumbnails img {
        height: 75px;
    }

    .lightbox-prev {
        left: 0;
    }

    .lightbox-next {
        right: 0;
    }
}

/* CUSTOM EVENT DROPDOWN */

.event-filter {
    display: flex;
    justify-content: center;
    margin: 30px auto 40px;
}

.custom-event-dropdown {
    position: relative;
    width: 280px;
}

.event-dropdown-button {
    width: 100%;
    padding: 14px 20px;
    background: #fffaf3;
    color: #80533e;
    border: 1px solid #c9a58c;
    border-radius: 30px;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(128,83,62,0.10);
}

.dropdown-arrow {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.custom-event-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.event-dropdown-menu {
    display: none;
    position: absolute;
    top: 55px;
    left: 0;
    width: 100%;
    background: #fffdf9;
    border: 1px solid #ead6c5;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(80,55,35,0.16);
    overflow: hidden;
    z-index: 1000;
}

.custom-event-dropdown.open .event-dropdown-menu {
    display: block;
}

.event-dropdown-menu div {
    padding: 13px 20px;
    color: #655044;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
}

    .event-dropdown-menu div:hover {
        background: #f3e8dc;
        color: #80533e;
        padding-left: 27px;
    }

    .event-dropdown-menu div:not(:last-child) {
        border-bottom: 1px solid #f1e8df;
    }
    /*Menu*/
/* EVENT CATEGORY MENU */

.event-filter-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 35px auto 45px;
    padding: 15px 10px;
    border-bottom: 1px solid #e6d7c9;
}

.event-menu-item {
    position: relative;
    padding: 12px 19px;
    color: #715b4c;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all .3s ease;
}

    .event-menu-item:hover {
        color: #a36c4d;
    }

    .event-menu-item:after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 3px;
        width: 0;
        height: 2px;
        background: #a36c4d;
        transition: all .3s ease;
        transform: translateX(-50%);
    }

    .event-menu-item:hover:after {
        width: 65%;
    }

    .event-menu-item.active {
        color: #80533e;
        font-weight: bold;
    }

        .event-menu-item.active:after {
            width: 65%;
        }

.hidden-event-filter {
    display: none;
}

@media screen and (max-width: 600px) {

    .event-filter-menu {
        gap: 5px;
        margin: 20px auto 30px;
    }

    .event-menu-item {
        padding: 10px 12px;
        font-size: 13px;
    }
}
    /*Menu Ends*/

.lightbox-image-wrapper {
    position: relative;
    display: inline-block;
    max-width: 85%;
    max-height: 85vh;
}

    .lightbox-image-wrapper img {
        display: block;
        max-width: 100%;
        max-height: 85vh;
        object-fit: contain;
    }

.lightbox-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.7);
    color: #E5E5E5;
    font-family: Georgia, serif;
    font-size: 16px;
    text-align: center;
    box-sizing: border-box;
}

@media screen and (max-width: 768px) {

    .lightbox-caption {
        font-size: 11px;
        padding: 5px;
    }
}




    .event-video-tile:hover {
        background: #6b5038;
    }


#lightboxVideo {
    width: 85vw;
    max-width: 1000px;
    height: 70vh;
    border: none;
}


@media screen and (max-width: 768px) {

    #lightboxVideo {
        width: 90vw;
        height: 55vw;
    }
    
    .video-play-icon {
        width: 22px;
        height: 22px;
    }
    .video-tile-text {
        font-size: 8px;
        letter-spacing: 0.5px;
    }
}
.video-play-icon {
    width: 42px;
    height: 42px;
    font-size: 16px;
}
.video-tile-text {
        font-size: 8px;
        letter-spacing: 0.5px;
    }


/* =====================================
   EVENT VIDEO THUMBNAIL
===================================== */

.event-video-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100px;
    min-height: 0;
    padding: 5px;
    box-sizing: border-box;
    overflow: hidden;
    cursor: pointer;
    background: #302820;
    color: #fff;
    transition: background 0.3s ease;
}

    .event-video-tile:hover {
        background: #6b5038;
    }

.video-play-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e6b875;
    border-radius: 50%;
    box-sizing: border-box;
    color: #e6b875;
    margin-bottom: 6px;
}

    .video-play-icon i {
        font-size: 14px;
        line-height: 1;
    }

.video-tile-text {
    font-family: Arial, sans-serif;
    font-size: 10px;
    letter-spacing: 1px;
    text-align: center;
}


/* =====================================
   MOBILE VIDEO THUMBNAIL
===================================== */

@media screen and (max-width: 768px) {

    .event-thumbnails .event-video-tile {
        height: 100%;
        min-height: 75px;
        padding: 3px;
    }

    .event-thumbnails .video-play-icon {
        width: 22px;
        height: 22px;
        min-width: 22px;
        min-height: 22px;
        margin-bottom: 4px;
    }

        .event-thumbnails .video-play-icon i {
            font-size: 9px;
        }

    .event-thumbnails .video-tile-text {
        font-size: 7px;
        letter-spacing: 0.3px;
    }

}

/* =====================================
   EVENT THUMBNAILS - FINAL LAYOUT
===================================== */

.event-thumbnails {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px;
    width: 100%;
    padding: 5px;
    box-sizing: border-box;
}

    .event-thumbnails .event-photo,
    .event-thumbnails .event-video-tile {
        width: 100%;
        height: 100px;
        min-width: 0;
        min-height: 0;
        box-sizing: border-box;
    }

    .event-thumbnails .event-photo {
        display: block;
        object-fit: cover;
    }

    .event-thumbnails .event-video-tile {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 4px;
        overflow: hidden;
    }

/* NO VIDEO TILE */

.no-video-tile {
    background: #e9e3da;
    color: #80634f;
    cursor: default;
}

.no-video-icon {
    font-size: 22px;
    margin-bottom: 6px;
    color: #a18b77;
}

/* MOBILE */

@media screen and (max-width: 768px) {

    .event-thumbnails {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 5px;
        padding: 5px;
    }

        .event-thumbnails .event-photo,
        .event-thumbnails .event-video-tile {
            width: 100%;
            height: 75px;
            min-width: 0;
        }

        .event-thumbnails .video-play-icon {
            width: 22px;
            height: 22px;
            min-width: 22px;
            min-height: 22px;
            margin-bottom: 4px;
        }

            .event-thumbnails .video-play-icon i {
                font-size: 9px;
            }

        .event-thumbnails .video-tile-text {
            font-size: 7px;
            letter-spacing: 0;
            line-height: 1.2;
        }

    .no-video-icon {
        font-size: 17px;
        margin-bottom: 4px;
    }
}
