body {
    background-image: url('photography/wallpaper.jpg');
}

.writing-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding-top: 8vh;
    box-sizing: border-box;
}

.title-panel {
    padding: 2em 10vw;
    width: 70vw;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4em 5vw;
    align-items: center;
    width: 90vw;
    padding: 2em 0 3em;
    text-align: center;
}

.photo {
    margin: 0;
}

.photography-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.photography-img:hover {
    transform: scale(1.03);
}

.photo-caption {
    height: 3em;
    margin-top: 0.2em;
}

.photo-dialog:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.photo-dialog-image {
    display: block;
    max-width: 85vw;
    max-height: 85vh;
    border-radius: 12px;
    animation: zoom 0.6s;
}

@keyframes zoom {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.photo-dialog-close {
    position: absolute;
    top: 15px;
    right: 35px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #f1f1f1;
    font: inherit;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.photo-dialog-close:is(:hover, :focus) {
    color: #bbb;
}

footer p {
    margin-top: 0.2em;
}

@media (max-width: 768px) {
    body {
        background-image: url('photography/mobile_wallpaper.jpg');
    }

    .photo-gallery {
        grid-template-columns: minmax(0, 1fr);
        gap: 2em;
        padding-bottom: 2em;
    }

    .photography-img:hover {
        transform: scale(1.1);
    }
}
