:root {
    --background: oklch(99.5% 0 0);
    --almost-black: oklch(16.376% 0.00002 271.152);
    --muted-foreground: oklch(55.66% 0 0);
    --muted-selected: oklch(95% 0 0);
    --blue: oklch(62.3% .214 259.815);
}

body {
    padding: 0;
    max-width: 820px;
    width: auto;
    margin-left: auto;
    margin-right: auto;
    font-family: "Work Sans", sans-serif;
    font-weight: 400;
    background-color: var(--background);
}

section {
    width: 100%;
    margin-bottom: 5%;
}

section p {
    color: var(--almost-black);
}

#about p {
    margin-bottom: 2%;
}

.text-small {
    color: var(--almost-black);
    font-weight: 300;
    justify-content: center;
    margin-top: 0;
}

.text-small svg {
    vertical-align: text-bottom;
}

h2 {
    font-weight: 700;
}

.buttons {
    display: flex;
    gap: 1%;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.button {
    border-color: var(--muted-foreground);
    border-style: solid;
    border-width: 1px;
    border-radius: .375rem;
    justify-content: center;
    align-items: center;
    background-color: var(--background);
    color: var(--almost-black);
    padding: 5px;
    display: inline-flex;
}

.button:hover {
    background-color: var(--muted-selected);
}


/* slideshow */

.slideshow {
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    border-left: 5px solid var(--blue);
    padding: 0 1% 1% 1%;
}

.etv-slideshow-element,
.cactus-slideshow-element {
    display: none;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

.etv-slideshow-element > p, 
.cactus-slideshow-element > p {
    color: var(--blue);
    font-weight: 700;
    margin: 0 0 1% 0;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 1%;
    color: var(--blue);
    font-weight: 700;
    transition: 0.2s ease;
    user-select: none;
}

.prev {
    right: 7%;
}

.prev:hover, .next:hover {
    color: lightblue;
}


/* etv */

#etv-gallery {
    display: flex;
    flex-direction: row;
    gap: 2%;
    justify-content: space-between;
}

.etv-slideshow-element > img,
.etv-slideshow-element > video {
    width: 100%;
    display: block;
}


/* cactus */

#cactus-gallery {
    height: 100%;
    overflow: hidden;
}

.cactus-slideshow-element {
    height: 100%;
}

#cactus-gallery > .slideshow {
    width: 100%;
    height: 375px;
    overflow: hidden; /* Contain overflow */
}

#cactus-img-container {
    overflow-y: auto;
    overflow-x: hidden; /* Prevent horizontal scroll */
    height: 100%;
    max-width: 100%; /* Constrain width */
    box-sizing: border-box;
}

#cactus-img-container img {
    width: 100%;
    height: auto;
    display: block;
}

.cactus-slideshow-element video {
    width: 100%;
    max-width: 100%; /* Prevent overflow */
    height: auto;
    max-height: 100%;
    display: block;
    object-fit: cover; /* Better width control */
}


