.photobook-container {
    flex-grow: 1;
}

.photo-grid {
    column-count: 2;
    column-gap: 25px;
}

.photo-item {
    position: relative;
    cursor: pointer;
    border: 2px solid #CB997E;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 25px;
    break-inside: avoid;
    width: 100%;
}

.photo-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 13px;
    transition: transform 0.4s ease;
}

.photo-item:hover img {
    transform: scale(1.05);
}

.photo-description {
    display: none;
}

.lightbox-overlay {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(43, 38, 30, 0.95);
    display: flex; justify-content: center; align-items: center;
    z-index: 1000; padding: 20px; box-sizing: border-box;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative; display: flex; flex-direction: column;
    justify-content: center; align-items: center;
}

.lightbox-content img {
    max-width: calc(100vw - 160px); max-height: calc(100vh - 120px);
    border-radius: 10px; box-shadow: 0 0 30px rgba(0,0,0,0.5);
    background: #2a3122;
}

.lightbox-caption {
    font-family: 'Gaegu', cursive; font-size: 1.5rem;
    color: #DDBEA9; margin-top: 20px; text-align: center;
}

.lightbox-close {
    position: fixed; top: 40px; right: 40px;
    width: 28px; height: 28px; cursor: pointer;
    z-index: 1002; opacity: 0.8;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.lightbox-close:hover { opacity: 1; transform: scale(1.1); }
.lightbox-close::before, .lightbox-close::after {
    content: ''; position: absolute; top: 50%; left: 50%;
    width: 100%; height: 2px; background-color: #DDBEA9;
    border-radius: 2px;
}
.lightbox-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.lightbox-close::after { transform: translate(-50%, -50%) rotate(-45deg); }

.lightbox-nav {
    position: fixed; top: 50%; transform: translateY(-50%);
    color: #DDBEA9; font-size: 3rem; font-weight: bold;
    cursor: pointer; user-select: none;
    transition: color 0.2s ease, transform 0.2s ease;
    z-index: 1001; opacity: 0.7; padding: 10px 20px;
}
.lightbox-nav:hover {
    color: #FFE8D6; opacity: 1;
    transform: translateY(-50%) scale(1.1);
}
.lightbox-nav.prev { left: 30px; }
.lightbox-nav.next { right: 30px; }

.bottom-gif-container {
    position: fixed;
    bottom: -10px;
    right: 25%;
    width: 100px;
    z-index: 999;
}

.bottom-gif {
    width: 100%;
}

.tooltip-container {
    position: relative;
    display: inline-block;
}

.tooltip-text {
    visibility: hidden;
    width: 160px;
    background-color: #2a3122;
    color: #DDBEA9;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 100;
    bottom: 110%;
    left: 50%;
    margin-left: -80px;
    opacity: 0;
    transition: opacity 0.3s;
    font-family: 'OwlsNInk', cursive; 
    font-size: 1.1rem;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.top-gif-container {
    position: fixed;
    top: 100px;
    right: 300px;
    width: 100px;
    z-index: 999;
}

.top-gif {
    width: 100%;
}

.tooltip-container {
    position: relative;
    display: inline-block;
}

.tooltip-text {
    visibility: hidden;
    width: 160px;
    background-color: #2a3122;
    color: #DDBEA9;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 100;
    bottom: 110%;
    left: 50%;
    margin-left: -80px;
    opacity: 0;
    transition: opacity 0.3s;
    font-family: 'OwlsNInk', cursive; 
    font-size: 1.1rem;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

@media (max-width: 768px) {
    .photo-grid { column-count: 1; }
    .lightbox-nav.prev { left: 5px; }
    .lightbox-nav.next { right: 5px; }
    .lightbox-close { top: 20px; right: 20px; }
    .lightbox-content img { max-width: calc(100vw - 80px); }

    .top-gif-container {
        right: 45%;
    }
}