/*
   Student Name: Simon Digafe
   File Name: style.css
   Today's Date: July 2026
*/

/* Reset rules for structural and semantic layout elements (Step 10: Added video selector) */
html, body, header, nav, main, footer, aside, figure, figcaption, video {
    margin: 0;
    padding: 0;
    border: 0;
}

#wrapper {
    width: 100%;
    margin: 0 auto;
}

.tab-desk {
    display: none;
}

.mobile {
    display: block;
    text-align: center;
    padding: 10px;
}

/* Global Mobile Layout Structural Rules */
aside {
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    text-shadow: 4px 4px 10px #c5a687;
}

figure {
    border: 4px solid #2a1f14;
    box-shadow: 6px 6px 10px #c5a687;
    max-width: 400px;
    margin: 2% auto;
}

figure img {
    width: 100%;
    display: block;
}

/* Step 10: Video layout rule scaling with matching img behavior */
video {
    max-width: 100%;
    display: block;
    height: auto;
    margin: 2% auto;
}

figcaption {
    padding: 2%;
    border-top: 4px solid #2a1f14;
}

/* Tablet Media Query (Min-width: 768px) */
@media screen and (min-width: 768px) {
    .tab-desk {
        display: block;
    }
    .mobile {
        display: none;
    }

    .grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 10px;
    }

    aside {
        grid-column: 1 / span 2;
    }
}

/* Desktop Media Query (Min-width: 1024px) */
@media screen and (min-width: 1024px) {
    nav li a:hover {
        opacity: 0.5;
    }

    .grid {
        grid-template-columns: repeat(3, 1fr);
        grid-gap: 30px;
    }

    aside {
        grid-column: 1 / span 3;
        font-size: 2em;
    }
}

/* Large Desktop Media Query (Min-width: 1920px) */
@media screen and (min-width: 1920px) {
    .grid {
        grid-template-columns: repeat(4, 1fr);
    }

    aside {
        grid-column: 1 / span 4;
        font-size: 3em;
    }
}

/* Step 14 Research Assignment: Styling captions using ::cue */
video::cue {
    background-color: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    font-family: 'Lora', serif;
    font-size: 1.1rem;
}