/* Gallery Container */
.gallery-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Gallery Title */
.gallery-title {
    font-size: 2.5rem;
    text-align: center;
    color: #2d3436;
    margin-bottom: 3rem;
    position: relative;
    font-weight: 700;
}

.gallery-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #6c5ce7, #a8e6cf);
    margin: 1rem auto;
    border-radius: 2px;
}

/* Albums Grid */
.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Album Card */
.album-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.album-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Album Image Container */
.album-image-container {
    position: relative;
    padding-top: 75%; /* 4:3 Aspect Ratio */
    overflow: hidden;
}

.album-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Album Overlay */
.album-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(108, 92, 231, 0.8), rgba(168, 230, 207, 0.8));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.album-card:hover .album-overlay {
    opacity: 1;
}

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

/* Album Title and Info */
.album-title {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.album-info {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* View Album Link */
.album-link {
    background: #ffffff;
    color: #6c5ce7;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, background 0.3s ease;
}

.album-link:hover {
    background: #f8f9fa;
    transform: scale(1.05);
}

/* Album Details */
.album-details {
    padding: 1.5rem;
}

.album-description {
    color: #636e72;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.album-date {
    color: #b2bec3;
    font-size: 0.8rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.page-link {
    padding: 0.5rem 1rem;
    background: #6c5ce7;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.page-link:hover {
    background: #5849c4;
}

.current-page {
    color: #2d3436;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-title {
        font-size: 2rem;
    }

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

    .album-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .gallery-container {
        margin: 1rem auto;
    }

    .albums-grid {
        grid-template-columns: 1fr;
    }

    .pagination {
        flex-direction: column;
        gap: 0.5rem;
    }
}








/* Album Detail Styles */
.album-detail-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Album Header */
.album-header {
    margin-bottom: 3rem;
    text-align: center;
}

.back-button {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    background: #6c5ce7;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.back-button:hover {
    background: #5849c4;
    transform: translateX(-5px);
}

.back-icon {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.album-detail-title {
    font-size: 2.5rem;
    color: #2d3436;
    margin-bottom: 1rem;
}

.album-detail-description {
    color: #636e72;
    max-width: 800px;
    margin: 0 auto;
}

/* Photo Grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.photo-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
}

.photo-wrapper {
    position: relative;
    padding-top: 75%; /* 4:3 Aspect Ratio */
}

.photo-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Photo Overlay */
.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(108, 92, 231, 0.8), rgba(168, 230, 207, 0.8));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

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

.photo-title {
    color: white;
    text-align: center;
    margin-bottom: 1rem;
    padding: 0 1rem;
}

.view-photo-btn {
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.view-photo-btn:hover {
    transform: scale(1.1);
}

.expand-icon {
    font-size: 1.5rem;
    color: #6c5ce7;
}

/* Modal Styles */
.photo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.photo-modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.modal-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 3rem;
    padding: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

.modal-nav.prev {
    left: 20px;
}

.modal-nav.next {
    right: 20px;
}

.modal-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.modal-content:hover .modal-info {
    transform: translateY(0);
}

.modal-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.9rem;
}

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

    .modal-nav {
        font-size: 2rem;
        padding: 0.5rem;
    }

    .album-detail-title {
        font-size: 2rem;
    }
}

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

    .modal-nav {
        font-size: 1.5rem;
        padding: 0.3rem;
    }
}