
* {
    box-sizing: border-box;
}

html {
    width: 100%;
    max-width: 100%;
}

body {
    margin: 0;
    padding: 24px;
    width: 100%;
    max-width: 100%;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f4f0;
    color: #111;
    background-image: url('Images/Background.JPG');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.name {
    font-size: 14px;
    letter-spacing: 0.08em;
}

nav {
    display: flex;
    flex-direction: column;
    text-align: right;
}

nav a,
.categories a {
    color: inherit;
    text-decoration: none;
}

nav a {
    font-size: 12px;
    margin-bottom: 4px;
}

.hero {
    text-align: center;
    padding: 15px 20px 50px;
    max-width: 100%;
}

.hero-logo {
    display: block;
    width: 80%;
    max-width: 700px;
    height: auto;
    margin: 0 auto;
}

.hero p {
    font-size: 16px;
    margin-top: 20px;
    font-weight: bold;
    line-height: 1.5;
}

.intro {
    max-width: 400px;
    margin: 10px 0 100px;
    font-size: 14px;
    line-height: 1.5;
}

/* Tablet and mobile */
@media (max-width: 768px) {
    body {
        padding: 16px;
        background-attachment: scroll;
    }

    .hero {
        padding: 45px 0 35px;
    }

    .hero-logo {
        width: 100%;
        max-width: 500px;
    }

    .hero p {
        font-size: 13px;
    }

    .categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 16px;
    }
}

/* Small phones */
@media (max-width: 400px) {
    body {
        padding: 12px;
    }

    header {
        gap: 12px;
    }

    .name {
        font-size: 12px;
    }

    nav a {
        font-size: 11px;
    }

    .hero p {
        font-size: 12px;
    }

    .categories {
        gap: 16px 12px;
    }
}

.hero-categories {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    font-size: 14px;
    font-weight: bold;
}

.hero-categories a {
    color: inherit;
    text-decoration: none;
}

.hero-categories a:hover {
    text-decoration: underline;
}

.hero-categories span {
    color: inherit;
}
.photography-page {
    background-image: none;
    background-color: #ffffff;
    color: #171717;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.photography-page header {
    align-items: center;
    border-bottom: 1px solid #999;
    padding-bottom: 18px;
}

.photography-page .name {
    text-decoration: none;
    color: inherit;
}

.photography-page nav {
    flex-direction: row;
    gap: 20px;
}

.photography-page nav a {
    margin-bottom: 0;
    font-size: 11px;
    letter-spacing: 0.08em;
}

.photography-intro {
    padding: 48px 0 34px;
}

.photography-intro h1 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: normal;
    letter-spacing: -0.04em;
    margin: 0 0 10px;
}

.photography-intro p {
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
    max-width: 500px;
}

.photography-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 38px 24px;
}

.photo-collection {
    display: block;
    color: inherit;
    text-decoration: none;
    min-width: 0;
}

.photo-collection img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: opacity 0.2s ease;
}

.photo-collection:hover img {
    opacity: 0.82;
}

.photo-caption {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    font-size: 13px;
    font-weight: bold;
}

.photo-arrow {
    font-size: 18px;
    font-weight: normal;
    transition: transform 0.2s ease;
}

.photo-collection:hover .photo-arrow {
    transform: translateX(4px);
}

.photography-footer {
    margin-top: auto;
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border-top: 1px solid #999;
    margin-top: 60px;
}

.photography-footer p {
    font-size: 9px;
    letter-spacing: 0.06em;
    line-height: 1.6;
}

.photography-footer div {
    display: flex;
    gap: 20px;
}

.photography-footer a {
    color: inherit;
    text-decoration: none;
    font-size: 10px;
    letter-spacing: 0.06em;
}

.photography-footer a:hover {
    text-decoration: underline;
}

/* TABLETS */

@media (max-width: 768px) {
    .photography-page {
        padding: 16px;
    }

    .photography-page header {
        gap: 12px;
    }

    .photography-page nav {
        gap: 12px;
    }

    .photography-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 16px;
    }

    .photography-intro {
        padding: 35px 0 28px;
    }

    .photography-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        margin-top: 40px;
    }

    .photography-footer p {
        margin-bottom: 8px;
    }
}

/* SMALL PHONES */

@media (max-width: 420px) {
    .photography-page {
        padding: 12px;
    }

    .photography-page .name {
        font-size: 10px;
    }

    .photography-page nav {
        gap: 8px;
    }

    .photography-page nav a {
        font-size: 9px;
    }

    .photography-intro h1 {
        font-size: 32px;
    }

    .photography-intro p {
        font-size: 12px;
    }

    .photography-grid {
        gap: 24px 12px;
    }

    .photo-caption {
        font-size: 12px;
        padding-top: 8px;
    }

    .photography-footer div {
        gap: 16px;
    }
}