/* photography.css */

.photography-page {
    /* Dark charcoal background for better contrast */
    background-color: #1a1a1a !important;
    background-image: none !important; 
    color: #fdfcf0 !important;
}

.photo-header {
    text-align: center;
    padding: 4rem 1rem 2rem 1rem;
}

.photo-header h1 {
    /* High-contrast cream text on dark background */
    font-family: 'Special Elite', cursive;
    color: #fdfcf0 !important; 
    font-size: 3.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.handwritten {
    font-family: 'Kalam', cursive;
    font-size: 1.2rem;
    color: #d1c7b7; /* Sandy tan for readability */
    margin-top: 5px;
}

.scrapbook-container {
    max-width: 95% !important;
    margin: 0 auto !important;
    padding: 0 40px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    align-items: start;
}

/* Individual Photo "Polaroids" */
.photo-item {
    background: #ffffff;
    padding: 12px 12px 35px 12px;
    box-shadow: 5px 10px 25px rgba(0,0,0,0.4);
    position: relative;
    border: 1px solid #333;
    cursor: pointer;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    overflow: hidden;
}

.item-rotate-left { transform: rotate(-1.5deg); }
.item-rotate-right { transform: rotate(2deg); }

.photo-item:hover {
    transform: rotate(0deg) scale(1.03);
    box-shadow: 8px 15px 35px rgba(0,0,0,0.5);
    z-index: 5;
}

.tape {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 25px;
    background: rgba(211, 199, 183, 0.4); /* Light masking tape */
}

.photo-item img {
    width: 100% !important;
    height: auto !important;
    display: block;
    cursor: zoom-in;
    object-fit: contain;
}

.caption {
    font-family: 'Kalam', cursive;
    font-size: 1rem;
    color: #333; /* Dark text on the white photo border */
    text-align: center;
    margin-top: 12px;
}

.lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border: 15px solid white;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
}

.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 3rem;
    opacity: 0.8;
    background: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s;
    padding: 0;
}

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
    opacity: 1;
}

.lightbox-close { top: 15px; right: 25px; font-size: 4.5rem; }
.lightbox-prev { left: 30px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 30px; top: 50%; transform: translateY(-50%); }

.footer-nav {
    text-align: center;
    padding: 50px 0;
}

.back-link {
    font-family: 'Kalam', cursive;
    color: #d1c7b7 !important;
    text-decoration: none;
    font-size: 1.2rem;
}

@media (max-width: 1000px) { 
    .photo-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

@media (max-width: 768px) {
    .photo-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
    .photo-header h1 { font-size: 2.5rem; }
    .lightbox-prev, .lightbox-next { font-size: 2rem; }
    .lightbox-close { font-size: 3rem; }
}