/* Shared photo gallery/carousel used by both themes, styled after the mobile uploader's carousel. */

.osten-gallery {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #111;
}

.osten-gallery__viewport {
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.osten-gallery__track {
    display: flex;
    height: 100%;
    transition: transform 0.35s ease;
}

.osten-gallery--single .osten-gallery__track {
    transition: none;
}

.osten-gallery__slide {
    flex: 0 0 100%;
    height: 100%;
}

.osten-gallery__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.osten-gallery__prev,
.osten-gallery__next {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.osten-gallery__prev:hover,
.osten-gallery__next:hover,
.osten-gallery__prev:focus-visible,
.osten-gallery__next:focus-visible {
    background: rgba(0, 0, 0, 0.6);
}

.osten-gallery__prev {
    left: 8px;
}

.osten-gallery__next {
    right: 8px;
}

.osten-gallery__dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.osten-gallery__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.osten-gallery__dot.is-active {
    background: #fff;
}

.osten-project__no-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #eee;
    border-radius: 8px;
}

.osten-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.osten-pagination__link {
    text-decoration: none;
    font-weight: 600;
}

.osten-pagination__link--disabled {
    opacity: 0.4;
    cursor: default;
}

.osten-pagination__status {
    opacity: 0.7;
    font-size: 0.9em;
}

/* Project title and story sections, styled after the mobile uploader's project page. */

.osten-project__title {
    margin: 0 0 0.75rem;
    color: #142033;
    font-weight: 700;
    font-size: 1.15em;
}

.osten-project__suburb {
    display: block;
    margin-top: 2px;
    color: #5c6778;
    font-size: 0.8em;
    font-weight: 600;
}

.osten-project__section {
    margin-bottom: 0.85rem;
    padding: 0.85rem 1rem;
    border: 1px solid #e2e6ec;
    border-radius: 14px;
    background: #fff;
}

.osten-project__section h4 {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 4px;
    font-size: 0.85em;
    font-weight: 700;
}

.osten-project__section-icon {
    flex: 0 0 auto;
    width: 1.1em;
    height: 1.1em;
}

.osten-project__section p,
.osten-project__section .osten-project__list {
    margin: 0;
    color: #142033;
}

.osten-project__section--why {
    background: #fff6df;
    border-color: #f0c36a;
}

.osten-project__section--why h4 {
    color: #8a5a00;
}

.osten-project__section--what {
    background: #e8f4fb;
    border-color: #9ecae6;
}

.osten-project__section--what h4 {
    color: #1a5278;
}

.osten-project__section--result {
    background: #e8f6ec;
    border-color: #8fceb0;
}

.osten-project__section--result h4 {
    color: #1b6b3a;
}

.osten-project__list {
    padding-left: 1.2rem;
}
