h1 {
    margin-top: 0;
    margin-bottom: 10px;
    font-family: "Apple Chancery", cursive, "Times New Roman", serif;
}

body.outfits {
    background-color: #CFFFFD;
}

body.sounds {
    background-color: #FDEBFF;
}

.nav {
    margin-bottom: 20px;
}

h1 a,
h1 a:visited {
    color: blue;
    text-decoration: none;
}

h1 a:hover {
    color: red;
}

.nav a,
.nav a:visited {
    padding: 5px 10px;
    margin-right: 10px;
    text-decoration: none;
    background-color: blue;
    color: white;
}

.nav a:hover {
    background-color: red;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    display: flex;
    flex-direction: column;
}

.art-media-wrapper {
    display: flex;
    flex-direction: column;
}

.art-media-container img,
.art-media-container video {
    width: 100%;
    height: auto;
    display: block;
}

.art-carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}

.art-carousel-arrow {
    background: none;
    border: none;
    color: #000;
    font-size: 16px;
    cursor: pointer;
    padding: 0 6px;
}

.art-carousel-counter {
    font-family: 'Times New Roman', Times, serif;
    font-size: 12px;
    color: #000;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: auto;
    display: block;
}

.sound-item {
    border-style: dashed;
    padding: 5px;
}

.sound-item audio {
    width: 100%;
    display: block;
    border: none;
    background-color: transparent;
}

.sound-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    border: 1.5px solid #000;
    padding: 20px 10px;
    background-color: transparent;
}

.sound-play-pause {
    background: none;
    border: none;
    color: #000;
    font-size: 14px;
    cursor: pointer;
    padding: 0 4px;
}

.sound-skip {
    background: none;
    border: none;
    color: #000;
    font-size: 14px;
    cursor: pointer;
    padding: 0 4px;
}

.sound-progress-bar {
    flex: 1;
    height: 4px;
    border: 1px solid #000;
    background-color: transparent;
    position: relative;
    cursor: pointer;
}

.sound-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 0;
    background-color: #000;
}

.sound-progress-handle {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%) scaleX(-1);
    font-size: 30px;
    cursor: grab;
    user-select: none;
    pointer-events: auto;
}

.sound-progress-handle:active {
    cursor: grabbing;
}

.sound-image-wrap {
    margin-bottom: 6px;
}

.sound-image-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

.sound-time {
    font-family: 'Times New Roman', Times, serif;
    font-size: 11px;
    color: #000;
}

.gallery-item .date-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Times New Roman', Times, serif;
    font-size: 14px;
    margin-top: 15px;
}

body.outfits .gallery-item .date-container {
    margin-top: 0;
}

.gallery-item .date {
    flex: 1;
}

.gallery-item .delete-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #000;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
    font-family: Arial, sans-serif;
}

.gallery-item .delete-btn:hover {
    color: #000;
}

/* Full-screen image lightbox (shared) */
#imageLightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

#imageLightbox.active {
    display: flex;
}

#imageLightbox .lightbox-backdrop {
    position: absolute;
    inset: 0;
}

#imageLightbox .lightbox-content {
    position: relative;
    max-width: 50vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#imageLightbox .lightbox-img {
    max-width: 100%;
    max-height: 100%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

#imageLightbox .lightbox-caption {
    margin-top: 10px;
    color: #fff;
    font-family: 'Times New Roman', Times, serif;
    font-size: 13px;
    text-align: center;
}

#imageLightbox .lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

#imageLightbox .lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    padding: 0 10px;
}

#imageLightbox .lightbox-prev {
    left: 15px;
}

#imageLightbox .lightbox-next {
    right: 15px;
}

#uploadForm .form-group {
    margin-bottom: 10px;
}

#uploadForm .form-group label {
    font-family: 'Times New Roman', Times, serif;
    font-weight: bold;
}

#uploadForm .checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#uploadForm .checkbox-group label {
    font-family: 'Times New Roman', Times, serif;
    font-weight: normal;
    display: inline-flex;
    align-items: center;
    margin-right: 10px;
}

#uploadForm input {
    font-family: 'Times New Roman', Times, serif;
}

#uploadForm textarea {
    font-family: 'Times New Roman', Times, serif;
}

#gallery .art-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 4px;
}

.sound-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.sound-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 4px;
}

.sound-category {
    font-family: 'Times New Roman', Times, serif;
    font-size: 12px;
    border-style: solid;
    border-color: gray;
    border-width: 1px;
    color: gray;
    padding: 2px;
}

.sound-artist {
    font-size: 13px;
    font-style: italic;
    margin-bottom: 5px;
}

.sound-note {
    font-size: 13px;
    margin-bottom: 5px;
}

.sound-date {
    font-size: 12px;
}

#gallery .art-category {
    font-family: 'Times New Roman', Times, serif;
    font-size: 12px;
    border-style: solid;
    border-color: gray;
    border-width: 1px;
    color: gray;
    padding: 2px;
}

#art .filters,
.filters {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    font-family: 'Times New Roman', Times, serif;
    padding: 5px 10px;
    background-color: hotpink;
    color: #000;
}

.filter-btn.active {
    opacity: 0.5;
}

#addImageBtn,
#addSoundBtn {
    margin-bottom: 10px;
    background-color: #E3E3E3;
    border: 1px solid #000;
    color: #000;
}

#uploadForm {
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #ccc;
}

#uploadForm input {
    margin: 5px;
    display: block;
    background-color: white;
    border: 1px solid #000;
}

#uploadForm input[type="checkbox"] {
    display: inline;
    margin: 0;
    margin-right: 5px;
}

#uploadForm input[type="password"] {
    display: inline-block;
}

#uploadForm input[type="file"] {
    background-color: transparent;
    border: none;
}

#uploadForm input[type="file"]::file-selector-button {
    background-color: #E3E3E3;
    border: 1px solid #000;
    font-family: 'Times New Roman', Times, serif;
    color: #000;
}

#uploadForm input[type="file"]::-webkit-file-upload-button {
    background-color: #E3E3E3;
    border: 1px solid #000;
    font-family: 'Times New Roman', Times, serif;
    color: #000;
}

#uploadForm button {
    margin: 5px;
    display: inline-block;
    background-color: #E3E3E3;
    border: 1px solid #000;
    color: #000;
}

/* Mobile responsive - single column */
@media (max-width: 768px) {
    .gallery {
        grid-template-columns: 1fr;
    }

    #imageLightbox .lightbox-content {
        max-width: 100vw;
    }
}
