/* ==========================================================================
   Variables
   ========================================================================== */
   :root { 
    --ff: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    
    /* Core Colors */
    --color0: #111111; /* h1, h2, h3, h4, h5 */
    --color0Alpha: #111111bb;  /* p, ol li, ul li */
    --color0Alpha2: #11111111; /* Table rows even */
    --color1: #ffffff;
    --color1Alpha: #ffffffbb; /* Header p */
    --color1Alpha2: #ffffffbb; /* Header p */    
    --color2: #D8FF17;
    --color21: #fcffea; /* Not used */
    --color22: #323232; /* Not used */
    --color3: #3DCC27;
    --color4: #6F00B3;
    --color41: #e1fdbb; /* Not used */
    --color8: #f2f2f2;
    --color81: #323232; /* Not used */
    --color82: #d2d2d2; /* Not used */
    --color83: #d0d0d0; /* Not used */    
    --color84: #e0e0e0; /* Not used */
    --accent1: #065799;
    --accent1c: #B88E4D;
    --accent1cAlpha: #b88d4d40; /* Card hover */
    --accent2: #118338;
    --accent2Alpha: #11833840; /* background webforms */
    --accent2c: #B8514D; /* alert boxes */
    --accent2cAlpha: #B8514D40; /* Not used */

    /* Colors for quiz */
    --colorG: #118338;
    --colorGLight: #c3ddcd;
    --colorR: #B8514D;
    --colorRLight: #e9bbb9;
    --colorB: #065799;
    --colorBLight: #7a877f;
    --colorY: #D8FF17;
    --colorYLight: #e9e9c3;    


    --colorB: #16609a; /* Background Header */
    --colorBAlpha: #16609a99; /* Background Header */
    --colorR: #de4b53; /* Background Header */
    --colorRAlpha: #de4b5399; /* Background Header */
    --colorY: #ffcd06; /* Background Header */
    --colorYAlpha: #ffcd0699; /* Background Header */
    --colorG: #94ba45; /* Background Header */
    --colorGAlpha: #94ba4599; /* Background Header */
    --colorBAlpha: #f2f2f2; /* Background Header */
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font: inherit;
}

html {
    hanging-punctuation: first last;
    scroll-behavior: smooth;
}

body {
    min-height: 100svh;
    background-color: var(--color1);
    font-family: var(--ff);
    color: var(--color11);
    font-size: 18px;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, p {
    font-family: var(--ff);
    margin: 0.5rem 0 1rem 0;
    font-weight: 300;
    text-wrap: balance;
}

h1 {
    font-size: 2rem;
    font-weight: 400;
}

h2 {
    font-size: 1.8rem;
    font-weight: 400;
}

h3 {
    font-size: 1.4rem;
    font-weight: 400;
}

h4 {
    font-size: 1.4rem;
    line-height: 1.6rem;
    font-weight: 400;
}

h5 {
    font-size: 1.2rem;
    line-height: 1.4rem;
    font-weight: 200;
    text-transform: uppercase;
    color: var(--color11);
}

p {
    text-wrap: pretty;
    font-size: 1.125rem;
    line-height: 1.575rem;
    color: var(--color0Alpha);
}

strong {
    font-weight: 700;
}

ul, ol {
    margin: 0 0 1rem 0;
    padding: 0 1rem 0 1.4rem;
    /* margin: 1rem 0;
    padding: 0;     */
}

ul li, ol li {
    padding: 0.2rem 0 0.3rem 0;
    text-wrap: pretty;
    font-size: 1.125rem;
    line-height: 1.575rem;    
    font-weight: 300;
    color: var(--color0Alpha);
}

a {
    color: var(--accent2);
    text-decoration: none;    
}

a:hover {
    text-decoration: underline;
    color: var(--color11);
}

p > a {
    font-weight: 500;
}

p.breadcrumb a, nav p > a {
    font-weight: 200;
}

p.note {
    font-size: 0.8rem;
    line-height: 1rem;
    font-weight: 300;
    color: var(--color0Alpha);
    margin: 0.5rem 0 0 0;
}

/* Add this to the Typography section */
p.enhance {
    background-color: var(--accent1cAlpha);
    border-left: 4px solid var(--accent1c);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 0.5rem 0.5rem 0;
}

p.enhance a {
    color: var(--accent1c);
    text-decoration: underline;
    font-weight: 500;
}

p.enhance a:hover {
    text-decoration: none;
}

/* ==========================================================================
   Media Elements
   ========================================================================== */
img, picture {
    display: block;
    max-width: 100%;
}

img {
    vertical-align: middle;
    font-style: italic;
    font-size: 0.9rem;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 0.2rem;
    overflow: hidden;
}

/* ==========================================================================
   Layout Components
   ========================================================================== */
header, footer, body > figure {
    box-shadow: 0 0.2rem 0.4rem rgb(0, 0, 0, 0.1);
}

/* Header */
header {
    background-color: var(--color0);
    color: white;
    position: static;
    z-index: 100;
}

header > .wrapper {
    position: relative;
    display: grid;
    grid-template-columns: 65px 1fr;
    grid-template-rows: auto auto;
    gap: 0.5rem;
    padding: 1rem; 
    margin: 0;
}

header img {
    grid-column: 1;
    grid-row: 1 / 3;
    display: inline;
    margin: 0;
}

header p:first-of-type {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    padding: 0;
    font-size: 2rem;
    font-weight: 400;
    color: var(--color1);
}

header p:last-of-type {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    padding: 0;
    font-size: 1.2rem;
    font-weight: 200;
    color: var(--color1Alpha)
}

/* Banner Figure ----------------------------------------------------------------- */
body > figure {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 0;
    width: 100%;
}

body > figure > picture {
    position: relative;
    width: 100%;
    padding: 0;
    margin: 0;
}

body > figure > picture > img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    border-radius: 0;
}

body > figure > picture::after {
    padding-bottom: 75%;
    display: block;
    content: "";
}

body > figure > figcaption {
    text-align: right;
    padding: 0.5rem;
    color: var(--color1);
}

body > figure > figcaption > span {
    color: var(--color0);
}

/* Main Content Sections */
section.wrapper {
    margin: 1rem auto;
    padding: 1rem;
    scroll-snap-align: start;
    width: 100%;
    max-width: 1300px;    
    box-shadow: 0 0 0.8rem rgba(0, 0, 0, 0.1);
}

@media only screen and (min-width: 768px) {
    section.wrapper {
        padding: 2rem;
        border-radius: 0.5rem;
    }
}


section.wrapper:has(nav) > nav {    
    border-top: 1px solid var(--color82);
}

/* Steps Section */
.steps {
    counter-reset: step;
}

/* Cards Grid */
.cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

.card {
    background: var(--color1);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 0 0.8rem rgba(0, 0, 0, 0.1);
    border: 1px solid var(--color83);
}


.card h2 {
    font-size: 1.5rem;
    line-height: 1.8rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 1.125rem;
    line-height: 1.25rem;
    font-style: normal;
}

/* Footer */
footer {
    padding: 1rem 0;
    border-top: 1px dotted var(--color11);
    background-color: var(--color8);
    color: var(--color11);
}

footer > div.wrapper {
    padding: 0.5rem;
    margin: 0 auto;
}

footer p {
    text-align: center;
    line-height: 1.5rem;
}

footer > div > img {
    margin: 0 auto;
    width: 96px;
    height: 96px;
}

footer .wrapper p:first-of-type {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem; /* Adds consistent spacing between links */
    flex-wrap: wrap; /* Allows links to wrap on smaller screens */
  }

footer a, 
footer a:visited {
    color: var(--color0);
    text-decoration: underline;
}

footer >div > p > a:hover, 
footer >div > p > a:focus {
    text-decoration: none;
}

footer > div > p:nth-child(1) > a {
    background: var(--color1);
    color: var(--color0);
    border-radius: 0.2rem;
    display: inline-block;
    font-size: 1rem;
    font-weight: 400;
    line-height: 2rem;
    margin: 0.2rem 0;
    padding: 0.2rem 0.5rem;
    text-decoration: none;
    min-width: 6rem;
}

footer > div > p:nth-child(1) > a:hover {
    background: var(--color0);
    color: var(--color1);
    transition: 0.2s;
}

footer > div > p:last-of-type {
    font-size: 1rem;
    line-height: 1.4rem;
}

/* Utilities */
.countdown {
    display: block;
    font-family: monospace;
    font-size: 2rem;
    line-height: 2rem;
    font-weight: normal;
    padding: 1rem 0;
    height: 5rem;
}

ul.common-names {
    margin: 0;
    padding: 0;
    font-size: 1.2rem;
    line-height: 1.5rem;
    font-weight: 300;
}
ul.common-names > li {
    list-style: none;
}

/* Tables ------------------------------------------------------------------------------------ */

table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    margin: 1rem 0;
    table-layout:auto;
}

table > thead {
    background-color: #dedede;
}
  
table td, table th {
    padding: 0.2rem 0.3rem;
    border: 1px dotted black;
    font-size: 0.8rem;
    line-height: 1rem;
}

table td {
    text-align: right;
}

table td:first-child {
    text-align: left;
}


/* Seasons Table ----------------------------------------------------------------- */
table.seasons {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 0;
    font-size: 1rem;
}

table.seasons th, table.seasons td {
    padding: 0.7rem;
    text-align: center;
    font-size: 1rem;
    border-left: 1px solid var(--color0Alpha2);
    border-right: 1px solid var(--color0Alpha2);
    border-top: none;
    border-bottom: none;
}

table.seasons th {
    white-space: nowrap;
    height: 90px;
    text-align: right;
    position: relative;
    vertical-align: top;
    border-left: 1px solid var(--color1);
    border-right: 1px solid var(--color1);
}

table.seasons th span {
    display: inline-block;
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translate(-50%, 50%) rotate(90deg);
}

table.seasons th:first-child, table.seasons td:first-child {
    text-align: left;
}

table.seasons th:first-child {
    vertical-align: bottom;
}

table.seasons tbody tr:nth-child(even) {
    background-color: var(--color0Alpha2);
}

table.seasons tbody {
    border-bottom: 1px solid var(--color0Alpha2);
}

/* Characteristics ----------------------------------------------------------------- */
table.characteristics, table.common-names {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    padding: 0;
    border: none;
}

table.characteristics td, table.common-names td {
    padding: 0.2rem 0;
    font-size: 1.125rem;
    line-height: 1.25rem;
    border: none;  
    font-weight: 200;
    text-align: left;
    vertical-align: top;
}

table.characteristics td:nth-child(2) {
    padding-left: 1rem;
}   

table.characteristics .characteristics-header,
table.characteristics .characteristics-header-second {
    font-size: 1.4rem;
    line-height: 1.6rem;
    font-weight: 400;
    padding-bottom: 0.5rem;
}

table.characteristics .characteristics-header-second {
    padding-top: 1rem;
}

.column:has(table.characteristics) {
    margin-bottom: 1rem;
}

@media only screen and (min-width: 960px) {
    .column:has(table.characteristics) {
        margin-bottom: 0;
    }

}

/* Video Gallery ----------------------------------------------------------------- */
ul.video-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

ul.video-gallery li {
    width: 200px;
}

ul.video-gallery li a {
    display: block;
    width: 100%;
    height: 100%;
}


/* Questions and Answers ----------------------------------------------------------------- */
.faq-list summary {
    cursor: pointer;
    padding: 1rem;
    background-color: var(--color0Alpha2);
    color: var(--color0);
    font-weight: 400;
}

.faq-list details {
    margin-bottom: 1rem;
    padding: 0;
    border: 1px solid var(--color0Alpha2);
    border-radius: 0 0.3rem 0 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.faq-list details[open] {
    max-height: 100rem; /* Large enough to fit content */
    opacity: 1; /* Fully visible when open */
}

details > div > p, details > div > h5 {
    padding: 1rem;
    margin: 0;
}

details > div > ol, details > div > ul {
    padding: 1rem 1rem 1rem 2rem;
    margin: 0;
}


/* ==========================================================================
   Responsive Layouts
   ========================================================================== */
@media only screen and (min-width: 520px) {
    body > figure > picture::after {
        padding-bottom: 50%;
    }
}

@media only screen and (min-width: 768px) {
    section.wrapper.cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (min-width: 768px) {
    body > figure > picture::after {
        padding-bottom: 33.3%;
    }

    section.wrapper:has(nav) {
        display: grid;
        grid-template-columns: 2fr 1fr; /* Two-column layout */
        grid-column-gap: 1rem;
    }

    section.wrapper:has(nav) > nav {
        display: block;
        grid-column: 2; /* Place <nav> in the right column */
        grid-row: 1 / 6; /* Span all rows */
        padding: 1rem 0 0 1rem;
        border-radius: 0 0.5rem 0.5rem 0;
        border-left: 1px solid var(--color82);
        border-top: 0;
    }
 
}

@media only screen and (min-width: 960px) {
    
    section.wrapper, footer > div.wrapper {
        max-width: 960px;
    }
}

@media only screen and (min-width: 1400px) {
    section.wrapper.cards {
        grid-template-columns: repeat(4, 1fr);
    }    
    section.wrapper, footer > div.wrapper {
        max-width: 1300px;
    }
}



/* ==========================================================================
   Hamburger Menu
============================================================================= */
.hamburger-menu {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0 0 0 0);
    overflow: hidden;
}

.menu-toggle {
    position: absolute;
    right: 1rem;
    top: 1.5rem;
    width: 2rem;
    height: 1.5rem;
    cursor: pointer;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--color1);
    position: absolute;
    transition: transform 0.3s ease;
    transform-origin: center;
}

.menu-toggle span:first-child {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle span:last-child {
    bottom: 0;
}

.hamburger-menu:checked ~ .menu-toggle span:first-child {
    transform: rotate(45deg);
    top: 50%;
    margin-top: -1px;
}

.hamburger-menu:checked ~ .menu-toggle span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu:checked ~ .menu-toggle span:last-child {
    transform: rotate(-45deg);
    top: 50%;
    margin-top: -1px;
    bottom: auto;
}

.menu-content {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    max-width: 430px;
    background: var(--color0);
    padding: 0;
    z-index: 100;
    box-shadow: -2px 0 4px rgba(0, 0, 0, 0.1);
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hamburger-menu:checked ~ .menu-content {
    display: block;
    opacity: 1;
}

.menu-content nav {
    background: transparent;
    position: relative;
    padding: 1rem 1rem;
    border-top: 1px dotted var(--color1);
}

.menu-content ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-content li {
    margin: 0.5rem 0;
}

.menu-content a {
    color: var(--color1);
    text-decoration: none;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    padding: 0;
}

.menu-content a:hover {
    color: var(--accent2);
}

.menu-content h4 {
    color: var(--color82);
    margin: 2rem 0 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.menu-content a span[data-emoji]::before {
    content: attr(data-emoji);
    margin-right: 0.8rem;
    font-size: 1rem;
    /* filter: grayscale(1); */
}


/* ==========================================================================
   Component Feedback
============================================================================= */

.feedback {
    position: relative;
    z-index: 1000;
}

.feedback > button {
    position: fixed;
    bottom: -1.8rem;
    right: -1.8rem;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: var(--color0);
    color: var(--color1);
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    font-size: 1.5rem;
    line-height: 1.5rem;
    padding: 1.5rem;
    text-align: center;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback > button:hover {
    background-color: var(--accent2c);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hide {
    display: none !important;
}

.feedback__container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.feedback__content {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    color: var(--color0);
    text-align: left;
    margin: auto;
    transform: translateY(0);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feedback__content > button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    color: var(--color0);
}

.feedback__content > h4 {
    margin-bottom: 1.5rem;
    color: var(--color0);
    text-align: left;
}

.feedback__content > p {
    color: var(--color0Alpha);
    text-align: left;
    width: 100%;
}

.feedback fieldset {
    border: 1px solid var(--color0Alpha2);
    border-radius: 0.25rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    text-align: left;
}

.feedback fieldset > textarea {
    border: 1px solid var(--color0Alpha2);
    border-radius: 0.25rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    text-align: left;
}

.feedback legend {
    color: var(--color0);
    padding: 0 0.5rem;
}

.feedback__content fieldset.required {
    border-color: var(--colorR);
}

.feedback__content fieldset.required legend:after {
    content: " *";
    color: var(--colorR);   
}

.feedback table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
}

.feedback th {
    font-size: 1rem;
    padding: 0.5rem;
    color: var(--color0);
    text-align: center;
}

.feedback td {
    text-align: center;
    padding: 0.5rem;
}

.feedback textarea {
    width: 100%;
    min-height: 100px;
    padding: 0.5rem;
    border: 1px solid var(--colorBAlpha);
    border-radius: 0.25rem;
    resize: vertical;
    color: var(--color0);
}

.feedback form button[type="submit"] {
    background-color: var(--color0);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 auto;
}

.feedback form button[type="submit"]:hover {
    background-color: var(--accent2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.feedback .messages {
    min-height: 0;
    margin: 0;
}

.feedback .message {
    padding: 1rem;
    border-radius: 0.25rem;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease, margin 0.3s ease;
}

.feedback .message:not(:empty) {
    opacity: 1;
    max-height: 200px; 
    margin-top: 1rem;
    width: 100%;
}

.feedback .message.warning {
    background-color: var(--colorYAlpha);
    color: var(--colorText);
    border: 1px solid var(--colorY);
    width: 100%;
}

.feedback .message.error {
    background-color: var(--colorRAlpha);
    color: var(--colorText);
    border: 1px solid var(--colorR);
    width: 100%;
}

.feedback .message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    width: 100%;
}

@media (max-width: 768px) {
    .feedback .ratethispage > div {
        width: 95%;
        padding: 1.5rem;
    }

}


/* ==========================================================================
   Component Subscription
============================================================================= */

.newsletter {
    padding: 1rem;
    border-radius: 0.25rem;
    background-color: var(--accent2Alpha);
}

/* Overlay styles */
.subscription-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.subscription-overlay-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    position: relative;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.subscription__content > button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    color: var(--color0);
}

.subscription__content > h4 {
    margin-bottom: 1.5rem;
    color: var(--color0);
    text-align: left;
}

.subscription__content > p {
    color: var(--color0Alpha);
    text-align: left;
    width: 100%;
}

.subscription__content fieldset {
    border: 0;
    margin-bottom: 0.5rem;
    padding: 0;
    text-align: left;
}

.subscription__content legend {
    display: none;
}

.subscription__content input {  
    border: 0;
    background-color: var(--colorBAlpha);
}

.subscription__content label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.5rem;
}

.subscription__content label:has(input[type="checkbox"]) input {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.subscription__content fieldset.required {  
    border: 1px solid var(--colorRAlpha);
}

.subscription__content fieldset.required legend:after {
    content: " *";
    color: var(--accent2c);
}

.subscription__content form button[type="submit"] {
    background-color: var(--color0);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 auto;
}

.subscription__content form button[type="submit"]:hover {
    background-color: var(--accent2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.subscription__content .messages {
    min-height: 0;
    margin: 0;
}

.subscription__content .message {
    padding: 1rem;
    border-radius: 0.25rem;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease, margin 0.3s ease;
}

.subscription__content .message:not(:empty) {
    opacity: 1;
    max-height: 200px; 
    margin-top: 1rem;
    width: 100%;
}

.subscription__content .message.warning {
    background-color: var(--colorYAlpha);
    color: var(--colorText);
    border: 1px solid var(--colorY);
    width: 100%;
}

.subscription__content .message.error {
    background-color: var(--colorRAlpha);
    color: var(--colorText);
    border: 1px solid var(--colorR);
    width: 100%;
}

.subscription__content .message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    width: 100%;
}

/* Slideshow ---------------------------------------------------------------------------------- */

.slideshow-container {
    margin: 2rem auto;
}

.slideshow {
    position: relative;
    width: 100%;
    margin: 0 auto;
    background: var(--color1);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0 0.8rem rgba(0, 0, 0, 0.1);
}

.slideshow-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: pointer;
}

.slide.active {
    opacity: 1;
}

.slide figure {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    position: relative;
}

.slide picture {
    width: 100%;
    height: 100%;
    display: block;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* EXIF Information Overlay */
.exif-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.slide.active .exif-overlay.show {
    opacity: 1;
}

.slide.active .exif-overlay {
    pointer-events: auto;
}

.exif-info {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 0.5rem;
    backdrop-filter: blur(10px);
    color: white;
    line-height: 1.4;
}

.exif-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.exif-label {
    font-weight: 600;
    color: var(--accent2);
    flex-shrink: 0;
}

.exif-value {
    text-align: right;
    font-weight: 400;
    color: white;
}


.slideshow-navigation {
    padding: 0;
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.slideshow-btn {
    background: var(--color1);
    border: 1px solid var(--color0);
    color: var(--color0);
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}

.slideshow-btn:hover {
    background: var(--color0);
    color: var(--color1);
}

.slideshow-btn:focus {
    outline: none;
}

/* Mobile-first responsive adjustments */

/* Base styles (mobile) */
.slideshow-wrapper {
    padding-bottom: 66.67%; /* Maintain 3:2 aspect ratio */
}

.exif-overlay {
    padding: 0.5rem;
}

.exif-info {
    padding: 0.75rem;
    font-size: 0.8rem;
    max-width: 250px;
}

.exif-row {
    margin-bottom: 0.25rem;
    gap: 0.5rem;
}

.slideshow-btn {
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
}

/* Tablet and up */
@media only screen and (min-width: 520px) {
    .exif-overlay {
        padding: 1rem;
    }
    
    .exif-info {
        padding: 1rem;
        font-size: 0.9rem;
        max-width: 300px;
    }
    
    .exif-row {
        margin-bottom: 0.5rem;
        gap: 1rem;
    }
    
    .slideshow-btn {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.25rem;
    }
    
}

/* Desktop and up */
@media only screen and (min-width: 768px) {
    .exif-info {
        font-size: 1rem;
        max-width: 350px;
        padding: 1.25rem;
    }
}

