@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded');

:root {
    /* Color Palette */
    --color-primary: #FF8901;
    --color-secondary: #F9AF25;
    --color-dark: #241A0B;
    --color-light-gray: #F5F5F5;
    --color-white: #FFFFFF;

    /* Text Size */
    --h1-size: 2.4rem;
    --h2-size: calc(var(--h1-size) * (45 / 60));
    --h3-size: calc(var(--h1-size) * (38 / 60));
    --h4-size: calc(var(--h1-size) * (33 / 60));
    --p-size: calc(var(--h1-size) * (33 / 60));

    /* Layout & Spacing */
    --max-width: 1000px;
    --transition-speed: 0.3s;
    --box-shadow: 0 4px 20px rgba(36, 26, 11, 0.08);

    --main-padding-x: 4rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    line-height: 1.6;
    font-family: Arial, "Segoe UI", Roboto, sans-serif;

    color: var(--color-text);
    background-color: var(--color-light-gray);

    min-height: 100vh;
    overflow-x: hidden;

    display: flex;
    flex-direction: column;
}

body.no-scroll {
    overflow: hidden;
}

main {
    width: 100%;
    max-width: var(--max-width);

    padding: 2rem var(--main-padding-x);
    margin: 0 auto;
}

.mobile-only {
    display: none !important;
}

.desktop-only {
    display: block !important;
}

h1 {
    font-size: var(--h1-size);
    line-height: 1.5;

    font-weight: bolder;
    font-family: 'Sigurd heavy', Georgia, serif, Arial;
}

h2 {
    font-size: var(--h2-size);
    line-height: 1.5;

    font-weight: bolder;
    font-family: 'Sigurd heavy', Georgia, serif, Arial;
}

h3 {
    font-size: var(--h3-size);
    line-height: 1.5;

    font-weight: bolder;
    font-family: 'Sigurd Bold', Georgia, serif, Arial;

    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

h4 {
    font-size: var(--h4-size);
    line-height: 1.5;
    font-family: Georgia, serif, Arial;
    font-style: italic;
}

p {
    font-size: var(--p-size);
    line-height: 1.5;
    font-family: Arial;
    text-align: justify;

    margin-bottom: 1rem;

    word-break: keep-all;
}

.image-container {
    width: 80%;
    height: auto;

    margin: 3rem 10%;
    position: relative;
    overflow: hidden;
}

.gallery-container {
    width: calc(100% + 2 * var(--main-padding-x));
    height: auto;

    margin: 3rem calc(-1 * var(--main-padding-x));
}

.image-container img,
.image-container video,
.gallery-container img,
.gallery-container video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

@media screen and (max-width: 992px) {
    :root {
        --h1-size: 2rem;
    }

    .mobile-only {
        display: block !important;
    }

    .desktop-only {
        display: none !important;
    }
}

@media screen and (max-width: 768px) {
    :root {
        --h1-size: 1.8rem;
        --main-padding-x: 2rem;
    }

    p {
        margin-bottom: 2rem;
    }


    .gallery-container {
        width: 100%;
        margin: 1em 0 3rem;
    }
}

@media screen and (max-width: 576px) {
    :root {
        --main-padding-x: 2rem;
    }
}

/* PDF Container */
.pdf-container {
    gap: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;

    margin: 1rem 0;
}

/* PDF Link (simplified & smaller) */
.pdf-btn {
    gap: 0.3rem;
    display: inline-flex;
    align-items: center;

    color: var(--color-secondary);
    transition: background-color var(--transition-speed), color var(--transition-speed);

    font-weight: 400;
    font-size: 0.9rem;
    text-decoration: none;

    padding: 0.15rem 0.75rem;

    border-radius: 0.8rem;
    border: 1px solid var(--color-secondary);
}

.pdf-btn:hover {
    color: var(--color-white);
    background-color: var(--color-secondary);
}

.pdf-btn .material-symbols-rounded {
    font-size: 1.15rem;
}

/* Photo Gallery Grid Style */
.photo-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
    margin: 3rem 0;
}

.photo-gallery img {
    width: calc(33.333% - 0.67rem);
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.photo-gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    cursor: pointer;
}

/* Responsive constraints for gallery grid */
@media screen and (max-width: 768px) {
    .photo-gallery img {
        width: calc(50% - 0.5rem);
        height: 160px;
    }
}

@media screen and (max-width: 480px) {
    .photo-gallery img {
        width: 100%;
        height: 200px;
    }
}

/* Reference */
ul.reference {
    padding-left: 2rem;
}

ul.reference li {
    text-align: justify;
    word-break: break-all;
    margin-bottom: 0.5rem;
}