* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    /* overflow: hidden; */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    position: relative;
}

h1 {
    color: white;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin: 0;
}

.album-selector {
    position: relative;
}

.album-dropdown {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    min-width: 140px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.album-dropdown:focus {
    outline: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
} */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.photo-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.photo-container {
    width: 100%;
    height: 350px;
    overflow: hidden;
    position: relative;
}

.photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 20px 15px 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.album-name {
    font-size: 12px;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.caption {
    font-size: 14px;
    color: white;
    line-height: 1.3;
    text-align: right;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    max-width: 60%;
}

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

.photo-info {
    display: none;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.page-info {
    color: white;
    font-size: 16px;
    font-weight: bold;
}

button {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    top: 50%;
    transform: translateY(-50%);
}

.modal img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.modal-caption {
    color: white;
    text-align: center;
    margin-top: 20px;
    font-size: 18px;
    line-height: 1.5;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.close:hover {
    opacity: 0.7;
}

.loading {
    text-align: center;
    color: white;
    font-size: 18px;
    padding: 40px;
}

.error {
    background: rgba(255, 0, 0, 0.1);
    color: #ff6b6b;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid rgba(255, 107, 107, 0.3);
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    h1 {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .photo-container {
        height: 280px;
    }

    .photo-container img {
        width: 95%;
    }

    .photo-overlay {
        padding: 15px 10px 10px;
    }

    .album-name {
        font-size: 11px;
    }

    .caption {
        font-size: 12px;
        max-width: 55%;
    }

    .modal-content {
        width: 95%;
        padding: 10px;
    }

    .modal img {
        width: 95%;
    }

    .pagination {
        gap: 10px;
    }

    button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 5px;
    }

    .photo-container {
        height: 250px;
    }

    .photo-container img {
        width: 95%;
    }

    .modal-caption {
        font-size: 16px;
    }

    .close {
        right: 10px;
        top: 5px;
    }
}
