/* Tag Slideshow Styles */

#tag-slideshow-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

#tag-slideshow-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 80%;
    max-width: 1200px;
    top: 50%;
    transform: translateY(-50%);
}

.tag-slideshow-slide {
    display: none;
    text-align: center;
}

.tag-slideshow-slide.active {
    display: block;
}

.tag-slideshow-slide img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.tag-slideshow-slide img:hover {
    opacity: 0.8;
}

/* Text container below image */
.tag-slideshow-text {
    position: relative;
    margin-top: 20px;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
    color: #fff;
}

.tag-slideshow-description {
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.4;
}

.tag-slideshow-caption-text {
    line-height: 1.4;
}

/* Image counter */
.tag-slideshow-counter {
    margin-top: 15px;
    font-size: 14px;
    text-align: left;
    color: #ccc;
}

.tag-slideshow-counter .tag-slideshow-current,
.tag-slideshow-counter .tag-slideshow-total {
    font-weight: bold;
    color: #fff;
}

/* Tags container */
.tag-slideshow-tags {
    margin-top: 15px;
    font-size: 14px;
    text-align: left;
}

.tag-slideshow-tags-label {
    font-weight: bold;
    margin-right: 5px;
}

.tag-slideshow-tag-link {
    color: #4fc3f7;
    text-decoration: none;
    border-bottom: 1px dotted #4fc3f7;
    transition: all 0.2s ease;
}

.tag-slideshow-tag-link:hover {
    color: #29b6f6;
    border-bottom: 1px solid #29b6f6;
}

/* Navigation buttons */
.tag-slideshow-prev,
.tag-slideshow-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -25px;
    padding: 10px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.5);
    z-index: 10;
}

.tag-slideshow-next {
    right: 10px;
    border-radius: 3px 0 0 3px;
}

.tag-slideshow-prev {
    left: 10px;
    border-radius: 3px 0 0 3px;
}

.tag-slideshow-prev:hover,
.tag-slideshow-next:hover {
    background-color: rgba(0,0,0,0.8);
}

/* Close button */
.tag-slideshow-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10;
}

.tag-slideshow-close:hover {
    color: #bbb;
    text-decoration: none;
}

/* Loading indicator */
#tag-slideshow-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 20px;
    z-index: 10;
}