@font-face {
    font-family: 'Handjet';
    src: url('handjet/Handjet-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Handjet';
    background-color: #ffcfe5;
    padding: 20px;
    transition: filter 0.3s ease;
    position: relative;
}

.page-title {
    text-align: center;
    font-size: 150px;
    font-weight: normal;
    margin-bottom: 40px;
    color: white;
    text-shadow: 2px 2px 5px #201a1d;
    letter-spacing: 2px;
}

.gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    transition: filter 0.3s ease;
}

.gallery-item {
    background-color: white;
    border-radius: 10px;
    padding-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 4px 8px #201a1d;
}

summary {
    list-style: none;
    cursor: pointer;
}

summary::-webkit-details-marker {
    display: none;
}

.caption {
    background: #a45d7d;
    color: white;
    font-size: 26px;
    font-weight: bold;
    padding: 20px;
    text-align: center;
    transition: background 0.3s ease, transform 0.3s ease;
    border-radius: 10px 10px 0 0;
}

.caption:hover {
    background: #201a1d;
    transform: translateY(-2px);
}

.content {
    display: none;
    gap: 20px;
    padding: 20px;
}

.gallery-item[open] .content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
}

.content img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 10px #201a1d;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px #201a1d;
}

.popup-text {
    background: #ffcfe5;
    border: 2px solid #201a1d;
    padding: 20px;
    border-radius: 10px;
    color: #201a1d;
    box-shadow: 0 4px 10px #76626c;
    animation: fadeIn 0.3s ease;
    font-size: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lightbox-toggle {
    display: none;
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
    transition: opacity 0.3s ease;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.lightbox .close {
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: pointer;
}


#lightbox1:checked ~ #lb1,
#lightbox2:checked ~ #lb2,
#lightbox3:checked ~ #lb3,
#lightbox4:checked ~ #lb4 {
    display: flex;
    opacity: 1;
}


#lightbox1:checked ~ .gallery,
#lightbox2:checked ~ .gallery,
#lightbox3:checked ~ .gallery,
#lightbox4:checked ~ .gallery {
    filter: blur(5px);
}


#lightbox1:checked ~ body,
#lightbox2:checked ~ body,
#lightbox3:checked ~ body,
#lightbox4:checked ~ body {
    filter: blur(5px);
}


@media (max-width: 768px) {
    .gallery-item[open] .content {
        grid-template-columns: 1fr;
    }
    .caption {
        font-size: 22px;
    }
    .popup-text {
        font-size: 18px;
    }
}