
/* Font declarations */
@font-face {
    font-family: 'Radley';
    src: url('../fonts/radley.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Present';
    src: url('../fonts/present.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/opensans.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Variables */
:root {
    --primary-color: #f48123;
    --primary-color-hover: #e67e00;
    --error-color: #d32f2f;
    --positive-color: #28a745;
    --background-color: #cec8b2;
    --dark-background-color: #79786b;
    --text-color: #23272b;

    --primary-font: 'Radley', serif;
    --header-font: 'Open Sans', sans-serif;
    --focus-font: 'Present';

    --homepage-sections-header-height: 140px;
    --homepage-sections-header-height-narrow: 100px;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--dark-background-color);
    color: var(--text-color);
    font-size: 16px;
    font-family: var(--primary-font);
    direction: inherit;
    text-align: start;
}

body > main {
  background-color: var(--background-color);
}

.container {
    max-width: 1200px;
    padding: 0 25px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    position: relative;
}

a {
    color: var(--text-color);
    text-decoration: none;
}

.sr-only {
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -50px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
    font-weight: bold;
    transition: top 0.3s;
    font-family: var(--header-font);
}

.skip-link:focus {
    top: 6px;
}



/* Layout */
body > main {
    padding-bottom: 32px;
}

.row-2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    flex-direction: row;
}
.row-2 > * {
    flex: 0 0 48%;
}
@media (max-width: 900px) {
    .row-2.break-900 {
        flex-direction: column;
    }
    .row-2.break-900 > * {
        flex: 1;
    }
}

.vertical-center {
    align-items: center;
}

.dark-background {
    background-color: var(--dark-background-color);
}

.clear {
    clear: both;
}

/* Typography */
h1 {
    font-family: var(--header-font);
    color: var(--primary-color);
    font-size: 2.8rem;
    font-weight: 300;
    padding: 75px 0 30px;
}
h2 {
    font-family: var(--header-font);
    font-size: 1.9rem;
    font-weight: normal;
    margin: 24px 0 30px;
    clear: both;
}
h3 {
    font-family: var(--header-font);
    font-size: 1.45rem;
    font-weight: normal;
    margin: 6px 0 12px;
}
p {
    margin-bottom: 18px;
}
.focus {
    font-weight: bold;
}

.quote {
    font-family: var(--focus-font);
}
.quote .reference {
    text-align: right;
}

ul, ol {
    margin: 0 0 18px 18px;
}

a {
    color: var(--primary-color);
}

/* Language Switcher */
.language-switcher-page {
    display: block;
    margin-top: 1rem;
    padding: 0.15rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(0, 0, 0, 0.4);
}

/* Facebook link */
.facebook-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: transparent;
    color: white !important;
    border: 2px solid white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    font-family: var(--header-font);
    padding: 8px 12px;
    font-size: 15px;
    max-width: 285px;
}

.facebook-link:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.facebook-link svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

/* Split header (Facebook link) */
.split-header {
display: flex;
justify-content: space-between;
}
.split-header .facebook-link-container {
margin-top: 77px;
}

@media (max-width: 600px) {
    .split-header {
        flex-direction: column;
    }
    .split-header .facebook-link-container {
        margin-top: -15px;
        margin-bottom: 25px;
    }
}

/* Cookie Warning */
.cookie-warning {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #efefef 100%);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 40px 10px 30px;
    text-align: center;
    font-family: var(--header-font);
}

.cookie-warning__icon {
    font-size: 48px;
    margin-bottom: 16px;
    filter: grayscale(100%);
    opacity: 0.8;
}

.cookie-warning h3 {
    font-size: 20px;
    margin: 0;
}

.cookie-warning__why {
    margin: 16px 0;
    font-size: 0.8em;
}

.cookie-warning__reassurance {
    margin-bottom: 36px;
    font-size: 0.8em;
    color: #28a745;
    font-weight: 500;
}

.cookie-reset-confirmation {
    color: var(--positive-color);
    margin-top: 1rem;
    font-weight: bold;
}
.contact-layout {
    display: flex;
    gap: 3rem;
}

.contact-info, .contact-form-container {
    flex: 1;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-family: var(--header-font);
    margin-bottom: 0.3rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #d4cdb6;
    border-radius: 4px;
    font-size: 16px;
}

.contact-submit-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 28px;
    font-family: var(--header-font);
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 1rem;
    font-weight: bold;
}

.contact-submit-button:hover {
    background-color: var(--primary-color-hover);
}

/* Form validation styles - only show invalid after blur */
.form-group input.touched:invalid,
.form-group textarea.touched:invalid {
    border-color: var(--error-color);
}

/* Error messages */
.error-message {
    color: var(--error-color);
    font-size: 14px;
    margin-top: 4px;
    min-height: 20px;
    display: block;
}

.error-message:empty {
    display: none;
}

/* Fieldset styling */
fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

legend {
    padding: 0;
}

@media (max-width: 900px) {
    .contact-layout {
        flex-direction: column-reverse;
        gap: 2rem;
    }

    .contact-submit-button {
        width: 100%;
    }
}

/* Scoped styles for the image block include */
  .dyh-figure-wrapper {
    margin: 0;
    padding: 0;
  }

  .dyh-figure-wrapper-center {
    text-align: center;
    clear: both;
  }

  .dyh-figure { 
    margin: 0; 
    padding: 0; 
    display: inline-table;
    max-width: 100%;
  }

  /* Single image default: intrinsic width, capped to container */
  .dyh-figure img {
    display: block;
    height: auto;
    width: auto;        /* don't force 100% */
    max-width: 100%;
  }

  /* Grid figures should use table display to constrain caption width */
  .dyh-image-grid .dyh-figure {
    display: table;
    margin-left: auto;
    margin-right: auto;
  }

  /* Grid images also use intrinsic width, centered in their cells */
  .dyh-image-grid .dyh-figure img {
    width: auto;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .dyh-figure figcaption {
    text-align: center;
    font-size: 0.9rem;
    padding: 4px 3px;
    background-color: var(--text-color);
    color: white;
    word-wrap: break-word;
    hyphens: auto;
    display: table-caption;
    caption-side: bottom;
  }

  /* Single image alignment (only when count == 1) */
  .dyh-figure.align-left { float: left; margin: 0.2rem 1rem 0.8rem 0; max-width: 33%; }
  .dyh-figure.align-right { float: right; margin: 0.2rem 0 0.8rem 1rem; max-width: 33%; }
  .dyh-figure.align-center { margin: 0 auto 1rem auto; display: table; }

  /* Grid for multiple images */
  .dyh-image-grid { 
    display: grid; 
    gap: 1rem; 
    align-items: start; 
    margin-top: 24px;
    margin-bottom: 24px;
    justify-content: center;
    clear: both;
  }
  .dyh-image-grid.cols-2 { grid-template-columns: repeat(2, auto); }
  .dyh-image-grid.cols-3 { grid-template-columns: repeat(3, auto); }

  .dyh-block-caption {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 0.95rem;
    color: white;
    background-color: var(--text-color);
    margin: 0 0 1rem;
    padding: 3px 10px;
  }

  /* Responsive breakpoint: collapse grids to one column and disable floats */
  @media (max-width: 600px) {
    /* Center all single figure wrappers on mobile */
    .dyh-figure-wrapper {
      text-align: center !important;
    }

    /* All single figures should use table display and be centered */
    .dyh-figure:not(.dyh-image-grid .dyh-figure) {
      display: table !important;
      margin-left: auto !important;
      margin-right: auto !important;
    }

    /* Disable floats and center all single images on mobile */
    .dyh-figure.align-left,
    .dyh-figure.align-right {
      float: none !important;
      margin: 0.2rem auto 0.8rem auto !important;
      display: table !important;
      max-width: 100%;
    }

    /* Center wrapper should still center the table */
    .dyh-figure.align-center {
      display: table !important;
      margin-left: auto !important;
      margin-right: auto !important;
    }

    /* Grid figures should use table display and auto width */
    .dyh-image-grid .dyh-figure {
      display: table !important;
      width: auto !important;
      margin-left: auto !important;
      margin-right: auto !important;
    }

    /* Grid images should also use auto width in mobile */
    .dyh-image-grid .dyh-figure img {
      width: auto !important;
      margin-left: auto !important;
      margin-right: auto !important;
    }

    .dyh-image-grid.cols-2,
    .dyh-image-grid.cols-3 { 
      grid-template-columns: 1fr !important; /* Force single column on small screens */
      justify-items: center !important; /* Center the grid items */
    }

    .dyh-image-grid { 
      grid-template-columns: 1fr !important;
      gap: 0.5rem !important;
      justify-items: center !important;
    }
  }

  /* Project page specific styles */
.wide-image {
    width: 100%;
    aspect-ratio: 2 / 1;
    overflow: hidden;
    display: flex;
}
.wide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}
header.main {
    padding: 33px 0 33px;
}

/* Header Layout */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.logo {
    max-width: 378px;
}

/* Hamburger Menu Button */
.hamburger-menu {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 2px 0;
    transition: 0.3s;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Navigation */
.main-nav {
    z-index: 100;
}

.main-nav > ul {
    margin: 0;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    column-gap: 16px;
}

.main-nav > ul > li {
    position: relative;
}

.main-nav, .main-nav a {
    font-family: var(--header-font);
    font-size: 14px;
    text-transform: uppercase;
    white-space: nowrap;
}

.main-nav a {
    color: var(--text-color);
}

.main-nav a:hover {
    color: var(--primary-color);
}

.main-nav .home svg {
    transform: translateY(2px);
}

/* Language Switcher */
.language-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--header-font);
    font-size: 14px;
    text-transform: uppercase;
    color: var(--text-color);
}

.language-toggle:hover {
    color: var(--primary-color);
}

.language-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Navigation Second Level & Language Dropdown */
.main-nav > ul > li:hover > div,
.main-nav > ul > li:hover > .language-dropdown {
    display: block;
}

.main-nav > ul > li > div,
.main-nav > ul > li > .language-dropdown {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    padding-top: 7px;
}

/* Language dropdown right-alignment for desktop layout (when space is limited) */
@media (max-width: 1270px) and (min-width: 901px) {
    .main-nav > ul > li > .language-dropdown {
        right: 0;
        left: auto;
        transform: none;
    }
    html[dir="rtl"] .main-nav > ul > li > .language-dropdown {
        left: 0;
        right: auto;
    }
}

.main-nav > ul > li ul {
    background-color: var(--primary-color);
    padding: 16px;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    row-gap: 10px;
    display: flex;
    margin: 0;
    list-style: none;
}

.main-nav > ul > li ul:after {
    bottom: calc(100% - 7px);
    left: 50%;
    border: solid transparent;
    content: " ";
    position: absolute;
    pointer-events: none;
    border-bottom-color: var(--primary-color);
    border-width: 6px;
    margin-left: -6px;
}

/* Language dropdown arrow positioning for right-aligned dropdown (when space is limited) */
@media (max-width: 1270px) and (min-width: 901px) {
    .main-nav > ul > li > .language-dropdown ul:after {
        left: auto;
        right: 9px;
        margin-left: 0;
        margin-right: -6px;
    }
    html[dir="rtl"] .main-nav > ul > li > .language-dropdown ul:after {
        left: 9px;
        right: auto;
        margin-left: -6px;
        margin-right: 0;
    }
}

.main-nav > ul > li ul li {
    white-space: nowrap;
}

.main-nav > ul > li ul a:hover {
    color: white;
}

/* Responsive Design - First Breakpoint: Center logo and menu, stack vertically */
@media (max-width: 900px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .logo {
        max-width: 300px;
    }

    .main-nav > ul {
        justify-content: center;
        flex-wrap: wrap;
        row-gap: 12px;
    }

    /* Restore centered positioning for language dropdown in centered layout */
    .main-nav > ul > li > .language-dropdown {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }

    /* Restore centered arrow positioning */
    .main-nav > ul > li > .language-dropdown ul:after {
        left: 50%;
        right: auto;
        margin-left: -6px;
        margin-right: 0;
    }
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive Design - Second Breakpoint: Hamburger menu */
@media (max-width: 600px) {
    .hamburger-menu {
        display: flex;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }

    .header-content {
        justify-content: flex-start;
        position: relative;
    }

    .logo-link {
        margin-right: auto; /* Push logo to the left */
    }

    .logo {
        max-width: 250px;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: var(--dark-background-color);
        transition: right 0.3s ease-in-out;
        z-index: 1000;
        padding-top: 20px;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav > ul {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 0 20px;
    }

    .main-nav > ul > li {
        width: 100%;
        text-align: center;
    }

    .main-nav a {
        display: block;
        font-size: 16px;
        padding: 4px 0;
    }
    
    .main-nav .language-dropdown a {
        padding: 0;
    }

    .language-toggle {
        width: 100%;
        padding: 12px 16px;
        font-size: 16px;
    }

    /* Always show dropdown menus on mobile */
    .main-nav > ul > li > div {
        position: static;
        transform: none;
        padding-top: 0;
        margin-top: 8px;
        display: block !important; /* Always show on mobile */
    }

    .main-nav > ul > li ul {
        position: static;
        background-color: var(--primary-color);
        margin-top: 8px;
        display: flex !important; /* Always show on mobile */
    }

    .main-nav > ul > li ul:after {
        display: none;
    }
}

@media (max-width: 400px) {
    .logo {
        max-width: 200px;
    }

    .main-nav {
        width: 280px;
    }
}
footer.main {
    margin: 2rem 0;
}
footer.main nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    row-gap: 20px;
}

footer.main nav .title {
    font-family: var(--header-font);
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 1rem;
    padding: 0;
    font-weight: 300;
    font-style: normal;
}

footer.main nav ul {
    margin: 0;
    list-style: none;
}

footer.main nav li {
    margin-bottom: 1px;
}

footer.main nav a {
    font-family: var(--header-font);
    color: var(--text-color);
    font-size: 0.95rem;
}

footer.main nav a:hover {
    color: var(--primary-color);
}

footer.main address {
    font-family: var(--header-font);
    font-style: normal;
    font-size: 0.95rem;
}

@media (max-width: 600px) {
    footer.main nav {
        flex-direction: column;
    }
}
.homepage .hero {
    background-color: var(--dark-background-color);
}
.homepage .hero img {
    width: 100%;
    aspect-ratio: 3;
    min-height: 200px;
    max-height: 370px;
    object-fit: cover;
    object-position: center 29%;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.homepage .hero .text {
    max-width: 1200px;
    width: 100%;
    padding: 0 25px var(--homepage-sections-header-height);
    font-family: var(--header-font);
    font-size: 1rem;
    text-align: center;
    margin: auto;
}
.homepage .hero .description {
    font-weight: 600;
    font-size: 1.6em;
    margin-top: 27px;
    margin-bottom: 38px;
    padding: 0;
    line-height: 1.4;
    color: white;
}
.homepage .sections {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    column-gap: 20px;
    position: relative;
    margin-top: calc(-1 * var(--homepage-sections-header-height));
    z-index: 2;
}
.homepage .sections > * {
    flex: 1;
}
@media (max-width: 1000px) {
    .homepage .hero .text {
        padding-bottom: var(--homepage-sections-header-height-narrow);
    }
    .homepage .hero .text .description {
        font-size: 1.4em;
        line-height: 1.4;
    }
    .homepage .sections {
        margin-top: calc(-1 * var(--homepage-sections-header-height-narrow));
    }
}
@media (max-width: 730px) {
    .homepage .hero .text {
        padding-bottom: 1px;
    }
    .homepage .hero .text .description {
        font-size: 1.3em;
    }
    .homepage .sections {
        flex-direction: column;
        margin-top: 20px;
        row-gap: 20px;
    }
}
@media (max-width: 520px) {
    .homepage .hero .text .description {
        font-size: 1.2em;
    }
}



/* Homepage Sections */
.homepage-section {
    display: flex;
    flex-direction: column;
}
.homepage-section .header {
    height: var(--homepage-sections-header-height);
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 20px;
    font-family: var(--focus-font);
    padding: 0 15px;
}
.homepage-section .icon {
    fill: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
}
.homepage-section .icon-background {
    background-color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.homepage-section .title {
    color: white;
    font-size: 1.4rem;
}

.homepage-section .image {
    width: 100%;
    height: 160px;
}
.homepage-section .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.homepage-section .content {
    background-color: white;
    flex: 1;
}
.homepage-section .content p {
    padding: 20px 30px 30px 30px;
}
.homepage-section .link {
    background-color: white;
    display: flex;
    justify-content: flex-end;
}
.homepage-section .link a {
    display: flex;
    align-items: center;
    font-family: var(--header-font);
    color: white;
    text-transform: uppercase;
    white-space: nowrap;
}
.homepage-section .link span {
    padding: 10px 15px;
}
.homepage-section .link .arrow {
    background-color: var(--text-color);
    fill: white;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
}

/* Ticks */
.homepage-ticks {
    margin: 1.9em 0 1em;
}
.tick-wrapper {
    display: flex;
    align-items: flex-start;
}
.tick-icon {
    font-size: 2rem;
    padding-right: 1rem;
}
.tick-heading {
    font-weight: bold;
    padding: 6px 0 5px;
    font-size: 1.3rem;
}
.tick-heading a {
    color: black;
}

@media (max-width: 1000px) {
    .homepage-section .header {
        height: var(--homepage-sections-header-height-narrow);
    }
    .homepage-section .icon-background {
        width: 45px;
        height: 45px;
    }
}

/* Vimeo Video */
.homepage-movie {
    width: 100%;
    aspect-ratio: 16/9;
    margin: 0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.image-carousel {
    position: relative;
    width: 100%;
    margin: 0 auto;
    background: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
}

.image-carousel .carousel-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: var(--carousel-max-height, 75vh);
    overflow: hidden;
}

/* When inside locationdetails modal, limit carousel height to fit available space */
.locationdetails .image-carousel .carousel-container {
    max-height: 60vh; /* Constrain to reasonable height that leaves room for header and description */
}

.image-carousel .carousel-slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease-out;
}

.image-carousel .carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
}

.image-carousel .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    user-select: none;
    -webkit-user-drag: none;
}

.image-carousel .carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.image-carousel .carousel-nav:hover {
    background: rgba(0, 0, 0, 0.7);
}

.image-carousel .carousel-nav.prev {
    left: 15px;
}

.image-carousel .carousel-nav.next {
    right: 15px;
}

.image-carousel .carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}

.image-carousel .carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    border: none;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-carousel .carousel-indicator.active {
    background: var(--primary-color, #007bff);
}

.image-carousel .carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

.image-carousel .carousel-indicator.active:hover {
    background: var(--primary-color, #007bff);
    opacity: 0.8;
}
.locationoverview {
    width: auto;
    position: relative;
}

.locationoverview .imagewrapper {
    position: relative;

}

.locationoverview .imagewrapper img {
    width: 100%;
    height: auto;
}

.locationoverview .imagewrapper .point {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 100%;
    margin-left: -12px;
    margin-top: -12px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.2s ease;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: bold;
    color: black;
}

.locationoverview .imagewrapper .point:hover {
    transform: scale(1.1);
}

.locationoverview .labelwrapper {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    row-gap: 7px;

    position: absolute;
    top: 20px;
    right: 20px;
    width: 200px;
    max-height: calc(100% - 40px);
    overflow: auto;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.locationoverview .labelwrapper li {
    border-radius: 10px;
    padding: 5px 10px;
}

.locationoverview .labelwrapper li .index {
    font-weight: bold;
}

.locationoverview .labelwrapper li a {
    display: block;
    cursor: pointer;
    transition: opacity 0.2s ease;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    color: black;
}

.locationoverview .labelwrapper li a:hover {
    opacity: 0.8;
}

/* Responsive behavior - remove inpicture positioning on small screens */
@media (max-width: 900px) {
    .locationoverview .labelwrapper {
        position: static;
        width: auto;
        background-color: transparent;
        border-radius: 0;
        padding: 0;
        box-shadow: none;
        margin-top: 10px;
        margin-bottom: 15px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 7px;
    }
}
@media (max-width: 800px) {
    .locationoverview .imagewrapper .point {
        width: 20px;
        height: 20px;
        border-radius: 100%;
        margin-left: -10px;
        margin-top: -10px;        
        font-size: 13px;
    }
}
@media (max-width: 600px) {
    .locationoverview .imagewrapper .point {
        width: 16px;
        height: 16px;
        border-radius: 100%;
        margin-left: -8px;
        margin-top: -8px;        
        font-size: 10px;
    }
}

/* Location details */
.locationdetails {
    max-height: 85vh;
    overflow-y: auto;
}
.locationdetails h4 {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 0.5rem;
}
.locationdetails p {
    margin-top: 0.5rem;
}
  .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .modal.show {
    display: flex;
    opacity: 1;
  }
  
  .modal.closing {
    opacity: 0;
  }
  
  .modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    max-width: min(1200px, 90%);
    max-height: 90%;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-50px);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
  }
  
  .modal.show .modal-content {
    transform: translateY(0);
    opacity: 1;
  }
  
  .modal.closing .modal-content {
    transform: translateY(-50px);
    opacity: 0;
  }
  
  .modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    transition: color 0.2s ease;
  }
  
  .modal-close:hover {
    color: #000;
  }
  
  .modal-loading {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #666;
  }
  
  .modal-error {
    text-align: center;
    padding: 40px;
    color: #d32f2f;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  @keyframes slideIn {
    from { 
      opacity: 0;
      transform: translateY(-50px);
    }
    to { 
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Responsive behavior - remove inpicture positioning on small screens */
  @media (max-width: 650px) {
    .modal-content {
      max-width: 95%;
      max-height: 95%;
      margin: 10px;
    }
  }

.button-container {
  margin-bottom: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  padding: 18px 24px;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  min-width: 120px;
  font-family: var(--header-font);
  border: none;
  width: fit-content;
}

.button:hover {
  background-color: #e67e00;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  text-decoration: none;
  color: white;
}

.button:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.button .arrow-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background-color: white;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.button .arrow-circle svg {
  width: 14px;
  height: 14px;
  fill: #ff8c00;
}

.button:hover .arrow-circle {
  background-color: #f0f0f0;
}



@keyframes pulse {
  0% {
    box-shadow: 0 2px 4px rgba(0,0,0,0.2), 0 0 0 0 rgba(255, 140, 0, 0.7);
  }
  70% {
    box-shadow: 0 2px 4px rgba(0,0,0,0.2), 0 0 0 10px rgba(255, 140, 0, 0);
  }
  100% {
    box-shadow: 0 2px 4px rgba(0,0,0,0.2), 0 0 0 0 rgba(255, 140, 0, 0);
  }
}

.button:focus {
  outline: none;
  animation: pulse 2s infinite;
}

.news-header-and-pdf {
    display: flex;
    justify-content: space-between;
}
.news-header-and-pdf .pdf {
    margin-top: 93px;
}
.pdf-button svg {
  width: 32px;
  height: 32px;
  fill: rgba(0, 0, 0, 0.8);
}

/* Video Container */
.video-container {
  position: relative;
  width: 100%;
  max-width: 854px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Overview */
.news-article {
  margin-bottom: 1.2rem;
}
.news-article h2 {
  margin: 0 0 1rem;
  line-height: 0.6;
}
.news-article h2 a {
  color: var(--text-color);
  font-size: 16px;
  font-weight: 700;
}
.news-article .image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-article p {
  margin: 0;
}

/* Wide screens: float image left, text flows around it */
@media (min-width: 401px) {
  .news-article .image-wrapper {
    float: left;
    margin-right: 10px;
    width: 150px;
    height: 150px;
  }
  .news-article h2 {
    display: inline;
  }
}

/* Narrow screens: title - picture - description (reorder with flexbox) */
@media (max-width: 400px) {
  .news-article {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
  }
  .news-article h2 {
    order: 1;
    margin-bottom: 0.6rem;
  }
  .news-article .image-wrapper {
    order: 2;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    margin-bottom: 0.6rem;
  }
  .news-article p {
    order: 3;
  }
}


/* Signatures */
.signatures {
    display: flex;
}
.signatures > div {
    flex: 1;
}
.signatures img {
    height: 40px;
    width: auto;
    padding: 20px 0 0;
    box-sizing: content-box;
}