/* Photos Page Specific Styles - Minimal Design */

/* Photos Gallery Section */
.photos-gallery-section {
    padding: 3rem 0 4rem;
    background-color: #ffffff;
    min-height: 80vh;
}

.photos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.photos-header h1 {
    font-size: 2rem;
    color: #111827;
    margin: 0;
    font-weight: 600;
}

.photos-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    transition: all 0.2s;
    min-width: 250px;
}

.search-bar:focus-within {
    background-color: white;
    border-color: #9ca3af;
}

.search-bar i {
    color: #9ca3af;
    font-size: 0.9rem;
}

.search-bar input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 0.9rem;
    color: #111827;
}

.search-bar input::placeholder {
    color: #9ca3af;
}

.photos-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #6b7280;
}

.photos-count i {
    color: #9ca3af;
    font-size: 1rem;
}

/* Photos Grid - Minimal Design */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.photo-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
    cursor: pointer;
}

.photo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}

.photo-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.photo-info {
    padding: 1rem;
}

.photo-info p {
    margin: 0 0 0.5rem 0;
    color: #111827;
    font-size: 0.95rem;
    font-weight: 500;
}

.photo-date {
    font-size: 0.8rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.photo-date i {
    font-size: 0.7rem;
}

.photo-photographer {
    font-size: 0.75rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.4rem;
    font-style: italic;
}

.photo-photographer i {
    font-size: 0.7rem;
    color: #9ca3af;
}

/* Loading Message */
.loading-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    font-size: 1rem;
    color: #6b7280;
}

.empty-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
}

.empty-message i {
    font-size: 3rem;
    color: #e5e7eb;
    margin-bottom: 1rem;
}

.empty-message h3 {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.empty-message p {
    color: #9ca3af;
    font-size: 0.95rem;
}

/* Photo Modal/Lightbox - Minimal */
.photo-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.2s ease;
}

.photo-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: white;
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    z-index: 10001;
    transition: opacity 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.modal-close:hover {
    opacity: 0.7;
}

.modal-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0 5rem;
    gap: 2rem;
}

.modal-photo-container {
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-photo-container img {
    max-width: 100%;
    max-height: calc(90vh - 100px);
    object-fit: contain;
    border-radius: 4px;
}

.modal-caption {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 1rem 1.5rem;
    border-radius: 6px;
    margin-top: 1.5rem;
    max-width: 600px;
    text-align: center;
}

.modal-caption p {
    margin: 0 0 0.3rem 0;
    color: #111827;
    font-size: 1rem;
    font-weight: 500;
}

.modal-caption span {
    color: #6b7280;
    font-size: 0.85rem;
}

/* Modal Navigation Buttons - Minimal */
.modal-nav {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-nav:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.modal-nav:disabled:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .photos-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .photos-header h1 {
        font-size: 1.5rem;
    }

    .photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .photo-card img {
        height: 220px;
    }

    .modal-content-wrapper {
        padding: 0 2rem;
        gap: 1rem;
    }

    .modal-nav {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }

    .modal-close {
        top: 1rem;
        right: 1rem;
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .photos-grid {
        grid-template-columns: 1fr;
    }

    .modal-content-wrapper {
        padding: 0 1rem;
    }

    .modal-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .modal-caption {
        padding: 0.75rem 1rem;
        margin-top: 1rem;
    }
}
