/* skeleton overrides and custom styles */


/* global */


.title {float: left;}
.social-icon {width: 20px; position: relative; top: 5px; border-radius: 5px;}

html {scroll-behavior: smooth;}
p {margin-bottom: .5rem; font-family: 'Libre Caslon Display'; color: #454d46; font-size: 20px;}
a {text-decoration: none; color: #0C400A;}
a h1 {color: #000;}
hr {margin-top: 1.5rem; margin-bottom: 1.5rem; }
ul {list-style: none};

.centered {text-align: center; }
.header-row {margin-bottom: 5rem; }

.grayed-out {opacity: .6;}
.header h1 {font-family: "Eagle Lake"; position: relative;}


.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.menu-toggle {
    cursor: pointer;
    display: inline-block;
}

.navbar-link {
    margin-right: 0;
}

/* RESET & BASE */
.nav-list,
.submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
    text-transform: uppercase;
}


.navbar-item a {
    text-decoration: none;
    padding: 0.5rem 0;
    display: inline-block;
    color: black;
}

/* MAIN NAV WRAPPER */
.main-nav {
    width: 100%;
    /*padding: 1rem 2rem;*/
    background: white; /* or whatever background you want */
    top: 0;
    left: 0;
    position: sticky; /* keeps it at the top when scrolling */
    z-index: 2000;    /* above other content */
    display: flex;
    justify-content: space-between; /* title left, nav right */
    align-items: center;
    font-family: 'Noto Serif', serif;
    font-size: 14px;

}

/* SITE TITLE */
.site-title a {
    font-family: "Eagle Lake", serif;
    text-decoration: none;
    color: black;
}

/* MAIN NAV - FLEX DESKTOP */
@media (min-width: 768px) {

    .nav-header {
        display: flex;
        flex-direction: row;       /* horizontal layout */
        justify-content: space-between;
        align-items: center;
    }

    .menu-toggle {
        display: none;
    }

    .nav-list {
        display: flex;
        gap: 2rem;
        align-items: center;
        padding: 20px;
    }

    .nav-list > li {
        position: relative;
    }

    .has-submenu {
        text-align: left;

    }

    /* SUBMENU - HIDDEN BY DEFAULT */
    .has-submenu > .submenu {
        display: none;
        position: absolute;
        top: 100%;  /* directly below parent */
        left: 0;
        background: white;
        min-width: 180px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
        padding: 0.5rem 0;
        z-index: 1000;
    }

    /* SHOW SUBMENU WHEN HOVERING PARENT OR SUBMENU */
    .has-submenu:hover > .submenu,
    .has-submenu:focus-within > .submenu {
        display: block;
    }

    .submenu li a {
        display: block;
        padding: 0.5rem 1rem;
    }
}

/* MOBILE MENU */
@media (max-width: 767px) {
    .main-nav {
        flex-direction: column;
    }

    .nav-header {
        display: flex;
        flex-direction: column;  /* stack children vertically */
        align-items: center; /* align to center edge */
        gap: 0.5rem;            /* optional spacing between h1 and MENU */
    }

    .nav-list {
        display: none;          /* hidden by default */
        flex-direction: column; /* stack items vertically */
        margin: 0;
        padding: 0;
        list-style: none;
        width: 100%;            /* full width of nav container */
    }

    .nav-list.open {
        display: flex;          /* shown when MENU toggle is clicked */
    }

    .nav-list > li {
        margin: 0;
        padding: 0.5rem 0;      /* spacing between items */
    }

    .nav-list .has-submenu > .submenu {
        position: static;       /* submenu flows inline in stack */
        box-shadow: none;
        padding-left: 1rem;     /* indent submenu */
        display: none;          /* hidden by default */
    }

    .nav-list .has-submenu.open > .submenu {
        display: block;         /* show when submenu toggled */
    }

    .menu-toggle {
        display: inline-block;  /* show the MENU button */
        font-size: 20px;
    }

    .main-nav .site-title {
        margin-bottom: 0.5rem; /* spacing between title and menu */
    }
}

.footer {
/*    position: absolute; */
/*    height: 75px; */
/*    bottom: 0;*/
    width: 100%;
}
.footer-text {text-align: center;}
.footer-link {color: black;}



/* home page */


.column-container {max-width: 20%; flex-basis: 20%;}

.active-category {border-bottom: 1px solid #3F7939; color: #3F7939;}

.latest-map {
    box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
    width: 100%;
}

/* Grid container */
.latest-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* always 2 columns on desktop */
    gap: 2rem; /* space between items */
    justify-items: center; /* center items in each column */
    align-items: start;
    padding: 1rem; /* optional: some padding around grid */
}

/* Each item */
.latest-item {
    max-width: 300px; /* controls overall size of column + image */
    text-align: center; /* center text under image */
}

/* Image styling */
.latest-item img {
    width: 100%;      /* fills column */
    height: auto;     /* keep aspect ratio */
    display: block;
    border-radius: 8px;
    border: 10px solid white;
    box-shadow: rgba(0,0,0,0.16) 0px 3px 6px,
                rgba(0,0,0,0.23) 0px 3px 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease; /* smooth hover effect */
}

/* Hover effect only on image */
.latest-item img:hover,
.gallery-img:hover {
    transform: scale(1.01);
    box-shadow: rgba(0,0,0,0.3) 0px 6px 12px,
                rgba(0,0,0,0.25) 0px 6px 12px;
}

/* Series name under image */
.series-name {
    margin-top: 1rem;
    text-align: center;
}

/* Mobile / small screens: stack vertically */
@media (max-width: 768px) {
    .latest-grid {
        grid-template-columns: 1fr; /* single column */
        gap: 1.5rem;
    }
}


/* gallery */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* max 3 columns */
    gap: 2rem;
    justify-items: center;
    padding: 1rem;
}

/* Each item */
.gallery-item {
    text-align: center;
    width: 100%;
    max-width: 220px; /* optional: prevent items from being too wide */
}

/* Image styling */
.gallery-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    border: 5px solid white;
    box-shadow: rgba(0,0,0,0.16) 0px 3px 6px,
                rgba(0,0,0,0.23) 0px 3px 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}


/* Image title */
.gallery-title {
    margin-top: 1rem;
    text-align: center;
}

/* 2 columns for medium screens */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 1 column for small/mobile screens */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .gallery-item {
        max-width: 100%;
    }
}

/* art detail page */

/* Grid container for centering */
.art-detail-grid {
    display: grid;
    place-items: center; /* centers both horizontally and vertically if needed */
    padding: 2rem;       /* space around the container */
}

/* Wrapper for the image to control width */
.image-wrapper {
    width: 100%;          /* image/container takes 80% of page width */
    max-width: 1000px;   /* optional: prevent it from getting too huge on very wide screens */
}

/* Image styling */
.image-detail {
    width: 100%;         /* fills the wrapper */
    height: auto;        /* maintain aspect ratio */
    display: block;
    border-radius: 8px;
    box-shadow: rgba(0,0,0,0.16) 0px 3px 6px,
                rgba(0,0,0,0.23) 0px 3px 6px;
    border: 10px solid white;
    box-sizing: border-box; /* optional */
}


.art-title {font-family: 'Libre Caslon Display'; color: black; line-height: 24px; text-align: center; }


input[type="text"],
textarea {color: black;}


.image-row {
    display: flex;
    justify-content: space-between;
    gap: 50px; /* Adjust spacing between images */
}

.image-container {
    width: 48%; /* Make sure two images fit per row with some space */
    text-align: center;
}

.image-container img {
    border: 10px solid white;
}

.image-container p {
    text-align: left;
}

.image-container .image-thumbnail {
    width: 100%;
    height: auto;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
}

.map-container {
    width: 100%;
}


.dimension {
    list-style-type: square;
    margin-left: 20px;
}

.dimensions {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* about */

.about-container {
    max-width: 700px;     /* controls how narrow it is */
    margin: 4rem auto;    /* centers it horizontally + adds vertical space */
    padding: 0 1.5rem;    /* breathing room on small screens */
}

/* upload form */

.upload-container {
    max-width: 700px;     /* controls how narrow it is */
    margin: 4rem auto;    /* centers it horizontally + adds vertical space */
    padding: 0 1.5rem;    /* breathing room on small screens */
}

#id_dimensions {
    height: 150px;
}

/* footer */
footer {position: fixed; bottom: 0; width: 100%; background: white; }
footer .container {margin-left: 0; border-top: 1px solid #eee; }
footer .footer-list {list-style: none; }
footer .footer-item {padding-top: 15px; }
footer .footer-icon {width: 25px; }
footer .footer-name {position: relative; bottom: 7px; font-weight: 500; }

/* media queries */


@media (max-width: 753px) {

    .desktop-sidebar {display: none;}
    .content {margin-left: 0;}
    .container {width: 100%; padding: 0 50px;}
    .mobile-menu-container {display: block; position: relative;}
    .mobile-navbar-list {display: block; text-align: left; padding-left: 50px;}
    #title {margin-bottom: 0; float: left;}
    .header h1 {font-size: 1.5em; padding-top: 20px;}


    .navbar .container {width: 100%; padding: 20px 0 0; }
    .navbar-list li {display: inline; padding-right: 10px; }
    .content-container {margin-bottom: 20px; }

    .navbar-spacer {height: 6.5rem;}
    .navbar {position: fixed; width: 100%; background: white; top: 0; height: 6.5rem; z-index: 1;}

    .navbar .container {width: 100%; padding: 20px 0 0; }
    .navbar-list li {display: inline; padding-right: 10px;}
    .content-container {margin-bottom: 20px; }
    footer {position: static; }
    footer .container {padding: 0; }
    footer .footer-list {margin-top: 1em; }

    .grid .grid-item {width: 160px; height: 190px;}

    .art-detail {width: 100%; border-radius: 0; border: 0; box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;}

    ul.mobile-dimensions {
        text-align: left;
    }

}


