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

.album-container {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Photo Gallery */
.photo-gallery-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.photo-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Main Photo Display */
.main-photo {
    position: relative;
    flex: 1;
    min-height: 200px;
    overflow: hidden;
    border-radius: 16px;
    background: #f3f4f6;
}

.main-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

/* Navigation Buttons */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.8);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    backdrop-filter: blur(4px);
    transition: background 0.3s;
    z-index: 10;
    pointer-events: auto;
}

.nav-btn:hover {
    background: white;
}

.nav-btn.prev {
    left: 8px;
}

.nav-btn.next {
    right: 8px;
}

.nav-btn svg {
    width: 20px;
    height: 20px;
    fill: #1f2937;
}

.zoom-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    height: 32px;
    padding: 0 8px;
    border-radius: 20px;
    background: rgba(255,255,255,0.8);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    backdrop-filter: blur(4px);
    transition: background 0.3s;
    z-index: 10;
    pointer-events: auto;
}

.zoom-btn:hover {
    background: white;
}

.zoom-btn svg {
    width: 14px;
    height: 14px;
    fill: #374151;
}

/* Thumbnail List */
.thumbnail-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 5px 0;
}

.thumbnail-container::-webkit-scrollbar {
    display: none;
}

.thumbnail-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.thumbnail-list {
    display: flex;
    gap: 8px;
    transition: transform 0.3s ease-out;
}

.thumbnail {
    width: 64px;
    min-width: 64px;
    height: 64px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
    position: relative;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.thumbnail.active {
    border-color: #3b82f6;
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
}

.thumbnail.active::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid white;
    pointer-events: none;
}

.thumbnail:hover {
    border-color: rgba(59, 130, 246, 0.6);
}

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

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    width: 90%;
    height: 90%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

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

.modal-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.close-btn {
    height: 36px;
    padding: 0 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.8);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    backdrop-filter: blur(4px);
    transition: background 0.3s;
}

.close-btn:hover {
    background: white;
}

.close-btn svg {
    width: 16px;
    height: 16px;
    fill: #1f2937;
}

.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.8);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    backdrop-filter: blur(4px);
    transition: background 0.3s;
    z-index: 10;
}

.modal-nav-btn:hover {
    background: white;
}

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

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

.modal-nav-btn svg {
    width: 24px;
    height: 24px;
    fill: #1f2937;
}

.modal-thumbnails {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    max-width: 90%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.modal-thumbnails::-webkit-scrollbar {
    display: none;
}

.modal-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-thumbnail.active {
    border-color: #3b82f6;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
}

.modal-thumbnail:hover {
    border-color: #3b82f6;
}
