/* ======= */
/* BUTTONS */
/* ======= */


/* ===== */
/* LINKS */
/* ===== */

button.link-underline,
a.link-underline {
    font-weight: 700;
    vertical-align: top;
    position: relative;
    z-index: 1;
    letter-spacing: .05rem;
    color: var(--primary-link-clr);
    text-shadow: var(--primary-link-text-shadow);
}

button.link-underline,
a.link-underline::before {
    content: '';
    background: var(--primary-link-bg);
    position: absolute;
    left: 0.75rem;
    bottom: 0;
    width: calc(100% - 5px);
    height: 3px;
    z-index: -1;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}
button.link-underline,
a.link-underline:hover::before {
    left: -5px;
    bottom: 0;
    height: 100%;
    width: calc(100% + 10px);
}

/* ======== */
/* CAROUSEL */
/* ======== */

.carousel {
    display: block;
    text-align: left;
    position: relative;
    margin-bottom: 22px;
}

.carousel > input {
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
}

/* Slide positioning based on radio button checked state */
.carousel > input:nth-of-type(6):checked ~ .carousel__slides .carousel__slide:first-of-type { margin-left: -500%; }
.carousel > input:nth-of-type(5):checked ~ .carousel__slides .carousel__slide:first-of-type { margin-left: -400%; }
.carousel > input:nth-of-type(4):checked ~ .carousel__slides .carousel__slide:first-of-type { margin-left: -300%; }
.carousel > input:nth-of-type(3):checked ~ .carousel__slides .carousel__slide:first-of-type { margin-left: -200%; }
.carousel > input:nth-of-type(2):checked ~ .carousel__slides .carousel__slide:first-of-type { margin-left: -100%; }
.carousel > input:nth-of-type(1):checked ~ .carousel__slides .carousel__slide:first-of-type { margin-left: 0; }

/* Thumbnail active state based on radio button checked state */
.carousel > input:nth-of-type(1):checked ~ .carousel__thumbnails li:nth-of-type(1),
.carousel > input:nth-of-type(2):checked ~ .carousel__thumbnails li:nth-of-type(2),
.carousel > input:nth-of-type(3):checked ~ .carousel__thumbnails li:nth-of-type(3),
.carousel > input:nth-of-type(4):checked ~ .carousel__thumbnails li:nth-of-type(4),
.carousel > input:nth-of-type(6):checked ~ .carousel__thumbnails li:nth-of-type(6) {
    box-shadow: 0 0 0 5px var(--accent-bg);
    border-radius: 3px;
}


.carousel__slides {
    position: relative;
    z-index: 1;
    padding: 0;
    margin: 0;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    display: flex;
}

.carousel__slide {
    position: relative;
    display: block;
    flex: 1 0 100%;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transition: all 300ms ease-out;
    vertical-align: top;
    box-sizing: border-box;
    white-space: normal;
}

/* Applying the aspect-ratio mixin directly */
.carousel__slide figure {
    display: flex;
    margin: 0;
}

@media screen and (max-width: 620px) {
    .carousel__slide figure {
        flex-direction: column;
    }
}

.carousel__slide div {
    position: relative; /* For the aspect ratio padding-top trick */
    width: 100%;
    padding-top: 66.66666%; /* This creates the 3:2 aspect ratio */
}

.carousel__slide div > img {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    border-radius: 5px;
}

.carousel__slide img {
    display: block;
    flex: 1 1 auto;
    object-fit: cover;
}

.carousel__slide figcaption {
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
@media screen and (min-width: 619px) {
    .carousel__slide figcaption {
        align-self: flex-end;
        padding: 20px 20px 0 20px;
        flex: 0 0 auto;
        min-width: 200px;

    }
}


.carousel__slide .credit {
    margin-top: 1rem;
    color: rgba(0, 0, 0, 0.5);
    display: block;
}

.carousel__slide.scrollable {
    overflow-y: scroll;
}

.carousel__thumbnails {
    list-style: none;
    padding: 0;
    display: flex;
    margin: 0 -10px;
}

.carousel__slides + .carousel__thumbnails {
    margin-top: 20px;
}

.carousel__thumbnails li {
    flex: 1 1 auto;
    max-width: calc((100% / 6) - 20px); /* Adjust based on the number of visible thumbnails */
    margin: 0 10px;
    transition: all 300ms ease-in-out;
}

.carousel__thumbnails label {
    display: block;
    /* Aspect Ratio: 1/1 (height / width) * 100% = 100% */
    position: relative; /* For the aspect ratio padding-top trick */
    padding-top: 100%; /* This creates the 1:1 aspect ratio */
}

.carousel__thumbnails label > img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.carousel__thumbnails label:hover,
.carousel__thumbnails label:focus {
    cursor: pointer;
}

.carousel__thumbnails label:hover img,
.carousel__thumbnails label:focus img {
    box-shadow: var(--bs);
    transition: all 300ms ease-in-out;
}

.carousel__thumbnails img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
}

/* Organiser Profile Image */
.profile-image-container {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    padding: 0 1rem;
    margin-bottom: 1rem;
    align-items: center;
}
.organiser-details {
    margin-top: .5rem;
    font-size: 1.5rem;
}

.profile-details {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 30px;
    font-weight: bold;
    text-transform: uppercase;
}