@charset "utf-8";

/*
    Villeda Events Gallery Stylesheet
    Author: Jose Sanchez
    Date: 12/19/2025

    filename: ve_styles3.css
*/

/* Font Family Links */
.playfair-display-sc-regular {
  font-family: "Playfair Display SC", serif;
  font-weight: 400;
  font-style: normal;
}

.playfair-display-sc-bold {
  font-family: "Playfair Display SC", serif;
  font-weight: 700;
  font-style: normal;
}

.playfair-display-sc-black {
  font-family: "Playfair Display SC", serif;
  font-weight: 900;
  font-style: normal;
}

.playfair-display-sc-regular-italic {
  font-family: "Playfair Display SC", serif;
  font-weight: 400;
  font-style: italic;
}

.playfair-display-sc-bold-italic {
  font-family: "Playfair Display SC", serif;
  font-weight: 700;
  font-style: italic;
}

.playfair-display-sc-black-italic {
  font-family: "Playfair Display SC", serif;
  font-weight: 900;
  font-style: italic;
}


/* HTML and Body Styles */
html {
    background-color: #fff3e8;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 15px;
}

body {
    margin: 0px auto;
    min-width: 320px;
    max-width: 1324px;
    width: 100%;
}

h1, h2 {
    font-family: 'Playfair Display SC', serif;
}

.main-content {
    display: flex;
    flex-direction: row;
}

/*Title and Logo*/
.branding {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 10px double rgb(90, 60, 40);
    box-sizing: border-box;
}

.site-title {
    flex: 1 1 auto;
    margin-left: 20px;
    font-size: clamp(2rem, 7vw, 5rem);
    font-weight: 600;
    color: rgb(56, 37, 25);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logo {
    flex: 0 1 150px; /*allow shrinking*/
    width: 100px;
    height: auto;
    object-fit: contain;
}


/*Vertical Navigation Styles*/
nav.vertical {
    background-color: rgb(90, 60, 40);
    display: flex;
    width: 150px;
    padding: 30px;
    margin: 20px;
    flex-shrink: 0;
    text-align: center;
}



/*Main Menu Styles*/
.mainmenu { /*Stack menu items vertically*/
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-transform: uppercase;
}

.mainmenu li {
    font-size: 20px;
}

.mainmenu a {
    display: block;
    color: #e2e2e2;
    text-decoration: none;
}

.mainmenu a:hover, .mainmenu a:active {
    color: black;
}

/*Gallery Section*/
.gallery {
    padding: 2rem;
}

.gallery h1 {
    font-size: 2.2rem;
}

.gallery h1, .gallery p {
    text-align: center;
}

.tabs {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
    justify-content: center;
}

.tab {
    padding: 0.6rem 1.2rem;
    border: 1px solid black;
    background: #eee;
    cursor: pointer;
    font-weight: 600;
    border-radius: 4px;
}

.tab.active {
    background: #333;
    color: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.gallery-img {
    width: 100%;
    cursor: pointer;
    border-radius: 4px;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    box-shadow: 2px 2px 5px;
}


/*JavaScript Lightbox Styling*/

dialog#lightbox {
    border: none;
    padding: 0;
    background: transparent;
}

dialog#lightbox::backdrop {
    background: rgba(0, 0, 0, 0.85);
}

#lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    display: block;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #000;
    color: #fff;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}


/*Footer Styles*/

footer {
    background-color: rgb(90, 60, 40);
    color: white;
    font-size: 0.9em;
    text-align: center;
    padding: 20px 0px;
    margin-top: 10px;
}




/*  ===========================
    Mobile Styles: 0px to 480px
    ===========================
*/
@media only screen and (max-width: 480px) {

    html {
        background-image: url(gallery/ve_mobilewp.jpg);
        background-attachment: fixed;
        background-position: center 20%;
        background-size: cover;
    }

    html, body {
        overflow-x: hidden;
    }

    .branding {
        flex-wrap: nowrap;
        background-color: #fff3e8;
    }

    .site-title {
        font-size: clamp(1.8rem, 6.5vw, 2.2em);
        white-space: nowrap;
        overflow: hidden;
    }

    .logo {
        width: 70px;
        max-width: 70px;
        margin-right: 10px;
    }

    .main-content {
        flex-direction: column;
        font-size: 1.2em;
        box-sizing: border-box;
        max-width: 100%;
    }

    nav.vertical {
        width: 100%;
        padding: 10px;
        margin: 0;
        justify-content: center;
        text-align: center;
        box-sizing: border-box;
    }

    .mainmenu {
        gap: 15px;
    }

    .gallery p {
        line-height: 2em;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tab, .tabs {
        padding: 10px 20px;
        font-size: 1em;
    }

    .desktop-only {
        display: none;
    }
}

/*  ===========================
    Tablet Styles: 481px to 820px
    ===========================
*/

@media only screen and (min-width: 481px) and (max-width:1024px) {

    html {
        background-image: url(gallery/ve_tabletbg.jpg);
        background-size: cover;
        background-attachment: fixed;
        background-position: center;
    }

    html, body {
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    body {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        margin: 0;
    }

    .branding {
        background-color: #fff3e8;
    }

    .site-title {
        font-size: clamp(1.9em, 6.5vw, 4rem);
    }

    .logo {
        width: 120px;
        max-width: 120px;
        margin-right: 25px;
    }

    .main-content {
        flex-direction: column;
        gap: 10px;
        font-size: clamp(1.4em, 2.2vw, 2.5em);
        flex: 1;
    }

    nav.vertical {
        width: 100%;
        margin: 0;
        padding: 12px 0;
        justify-content: center;
        box-sizing: border-box;
    }

    .mainmenu {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 40px;
    }

    .mainmenu a {
        padding: 10px 14px;
    }

    .gallery {
        height: auto;
        min-height: 0;
        padding-bottom: 2rem;
    }

    .tab, .tabs {
        font-size: 1em;
    }

    footer {
        flex-shrink: 0;
    }

    .desktop-only {
        display: none;
    }

}




/*  ===========================
    Desktop Styles: 1025px and above
    ===========================
*/

@media only screen and (min-width:1025px) {
    .gallery {
        font-size: 1.2em;
        line-height: 1.5em;
    }

    .tab, .tabs {
        font-size: 1em;
    }

    .logo {
        margin-right: 35px;
    }

    nav.vertical {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        border-radius: 20px;
        border: 10px double #fff3e8;
    }

    .desktop-only {
        width: 120px;
    }

}
