/* album grid and photo box styles */
/*
 * gallery.css
 * External CSS for ArtDM 174 Gallery Project
 * Layout is attractive and accessible with JS disabled
 Steve Foss
 October 2025
 */

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f8f8f8;
    margin: 0;
    color: #fdfdfd;
    background-color: #34495e;

}

timer-container {
    text-align: center;
    padding: 40px;
    border-radius: 10px;
    background-color: #34495e;
    box-shadow: 0 4px 8px rgba(250, 246, 246, 0.2);
}

.timer-display {
    font-size: 4rem;
    font-weight: bold;
    float: center;
    text-align: center;

    background-color: black;
}

header {
    background: #3094ce;
    color: #fff;
    padding: 1rem 1rem;

    text-align: center;
    background-image: url("../images/grass.svg");
    background-size: cover;
    background-repeat: no-repeat;
}

/* Headings with outlined text and shadow for readability */
h1,
h2,
h3 {
    color: #fff;
    text-shadow:
        2px 2px 6px rgba(0, 0, 0, 0.7),
        /* soft shadow */
        0 0 2px #000,
        /* outline effect */
        1px 1px 0 #000,
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000;
    letter-spacing: 0.02em;
}

nav ul {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 3px;
    border-radius: 10px;
    transition: background 0.9s;
    background-color: #888;
    opacity: 0.7;
    text-shadow:
        2px 2px 6px rgba(0, 0, 0, 0.7),
        /* soft shadow */
        0 0 2px #000,
        /* outline effect */
        1px 1px 0 #000,
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000;
}

nav a:hover,
nav a:focus {
    background: #f5f6f7;
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}


figure {
    object-fit: cover;
    margin: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

figure img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
    max-width: 100%;
    max-height: 100%;


}

figure img {
    display: flex;
    aspect-ratio: auto;
    height: auto;
}


figcaption {
    padding: 0.5rem;
    font-size: 1rem;
    color: #555;
    text-align: center;
}

footer {
    text-align: center;
    padding: 1rem 0;
    background: #0bbce8;
    color: #060606;
    font-size: 0.9rem;
}

.Equidistant-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    background-color: #34495e;
}

.conclusion-grid {

    background-color: #34495e;
}

.Inception-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    background-color: #34495e;

}

.photo-box {
    border: 2px solid #000;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
}

.photo-box img {
    width: 100vw;
    max-width: 1200px;
    height: auto;
    object-fit: contain;
    display: block;
    border-bottom: 1px solid #eee;
    background: #eee;
    opacity: 1;
    transition: opacity 1.5s;
    padding: 2px;
    box-sizing: border-box;
}

.photo-box2 {
    border: 2px solid #000;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(44, 62, 80, 0.18);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
}

.photo-box2 img {
    width: 100vw;
    max-width: 1200px;
    height: auto;
    object-fit: contain;
    display: block;
    border-bottom: 1px solid #eee;
    background: #eee;
    opacity: 1;
    transition: opacity 1.5s;
    padding: 2px;
    box-sizing: border-box;
}

.photo-box3 {
    border: 2px solid #000;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(44, 62, 80, 0.18);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
}

.photo-box3 img {
    width: 100vw;
    max-width: 1200px;
    height: auto;
    object-fit: contain;
    display: block;
    border-bottom: 1px solid #eee;
    background: #eee;
    opacity: 1;
    transition: opacity 1.5s;
    padding: 2px;
    box-sizing: border-box;
}




.caption {

    font-size: 1rem;
    color: #222;
    text-align: center;
    padding: 2px;
    box-sizing: border-box;

}



/* Single-page specific styles injected by JS */
.single-photo-box {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 0.5rem;
}

.single-photo-box .single-full {
    width: 100vw;
    max-width: 1400px;
    height: auto;
    object-fit: contain;
    display: block;
    border: 2px solid #000;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(44, 62, 80, 0.18);
    background: #eee;
    opacity: 1;
    transition: opacity 1.5s;
    padding: 2px;
    box-sizing: border-box;
}

.single-caption {
    font-size: 1.2rem;
    margin-top: 1rem;
    text-align: center;
    color: #222;
}

.single-nav {
    max-width: 920px;
    margin: 1rem auto;
    padding: 0.6rem;
    border-radius: 10px;
    background: linear-gradient(90deg, #3094ce 0%, #2fb8a6 100%);
    box-shadow: 0 6px 18px rgba(15, 50, 75, 0.18);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.single-nav a {
    background: rgba(48, 148, 206, 0.16);
    /* transparent blue button */
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    border: 1px solid rgb(253, 244, 244);
    text-decoration: none;
    font-weight: 600;
    transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
    box-shadow: 0 2px 8px rgb(247, 246, 246);
}

.single-nav a:hover,
.single-nav a:focus {
    background: rgba(48, 148, 206, 0.28);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15, 50, 75, 0.22);
}

.single-nav a[disabled],
.single-nav a[aria-disabled="true"] {
    opacity: 0.55;
    pointer-events: none;
    background: rgb(255, 255, 255);
    color: rgba(255, 255, 255, 0.8);
    box-shadow: none;
}

/* Floating navigation buttons in <main> */
.float-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    background: rgba(48, 148, 206, 0.18);
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(44, 62, 80, 0.18);
    padding: 0.5rem;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    outline: none;
}

.float-nav-left {
    left: 2vw;
}

.float-nav-right {
    right: 2vw;
}

.float-nav:hover,
.float-nav:focus {
    background: rgba(48, 148, 206, 0.32);
    box-shadow: 0 8px 24px rgba(44, 62, 80, 0.28);
}

.chevron-icon {
    display: block;
    width: 32px;
    height: 32px;
}

main {
    position: relative;
}

/* Autoplay controls (badge + toggle) */
.autoplay-controls {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-left: auto;
    /* push to the right */
}

.autoplay-badge {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    min-width: 92px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.autoplay-toggle {
    background: rgba(255, 255, 255, 0.16);
    color: #0b2b36;
    border: none;
    padding: 0.45rem 0.8rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease;

}

.autoplay-toggle:hover,
.autoplay-toggle:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15, 50, 75, 0.22);
}

/* visually hidden (accessible) */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.autoplay-toggle .icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
}

.autoplay-controls .autoplay-badge {
    min-width: 110px;
}