/* Preserve the public theme while using Bootstrap 5's grid and components. */
:root {
    --bs-primary: #01b7f2;
    --bs-link-color: #01b7f2;
}

[hidden] { display: none !important; }
.row { --bs-gutter-x: 30px; }
.row::before, .row::after { display: none; }
.row > * { min-width: 0; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #007da6;
    outline-offset: 3px;
}

.selector { line-height: normal; }
.selector select {
    position: static;
    opacity: 1;
    filter: none;
    appearance: none;
    line-height: 1.5;
}
.form-control, .form-select { font-size: 14px; }
.form-control.input-text, .form-select.input-text { padding: 8px 12px; height: auto; }
.form-select.input-text { padding-right: 36px; }
.form-check { min-height: 1.5em; padding-left: 1.75em; }
.form-check .form-check-input { float: left; margin-left: -1.75em; }
.form-check label { display: inline; }
.form-check-input { width: 1em; height: 1em; padding: 0; }
.form-label { margin-bottom: 6px; }
.invalid-feedback { font-size: 1em; }
.btn-center { margin-inline: auto; left: auto; }
form button[type="submit"] { white-space: normal; height: auto; min-height: 43px; line-height: 1.4; padding: 12px; }
.datepicker-wrap .ui-datepicker-trigger { font-size: 0; }
#ui-datepicker-div { z-index: 1060 !important; }

.tab-container ul.tabs.nav { display: flex; flex-wrap: wrap; border: 0; padding-left: 0; }
.tab-container ul.tabs.nav > li { float: none; }
.tab-container ul.tabs .nav-link { border: 0; border-radius: 0; }
.tab-container ul.tabs li > a.active { background: #fff; color: #01b7f2; }
.tab-container .tab-content > .tab-pane:not(.active) { display: none; }
.tab-container .tab-content > .tab-pane.active { display: block; }
.tab-container .tab-pane .row > [class*="col-"] { padding-left: 15px; padding-right: 15px; }

#header .main-header > .container { position: relative; }
#header .main-header > .container::after, #footer .bottom > .container::after {
    content: "";
    display: block;
    clear: both;
}
#main-menu li:focus-within > ul { visibility: visible; opacity: 1; display: block; }
.ribbon ul.menu.mini.show { display: block !important; visibility: visible; opacity: 1; }
.mobile-menu ul.menu > li > ul.collapse:not(.show) { display: none; }
.mobile-menu ul.menu > li > ul.collapse.show { display: block; }
.mobile-menu .dropdown-toggle::after { display: inline-block; border: 0; margin: 0; vertical-align: baseline; }
.mobile-menu .dropdown-toggle { border: 0; }
.mobile-menu .menu-item-has-children > a { padding-right: 45px; }
#header .mobile-menu-toggle { z-index: 3; border: 0; cursor: pointer; }
@media (max-width: 991.98px) {
    #header .main-header > .container { padding-right: 81px; }
}

.public-hero { position: relative; min-height: 646px; align-items: center; }
.public-hero .hero-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.public-hero::before { content: ""; position: absolute; inset: 0; background: rgb(255 255 255 / 30%); z-index: 1; }
.public-hero > .container { z-index: 2; }
.hero-logo { width: min(560px, 80%); max-height: 180px; object-fit: contain; }
.hero-description, .hero-audioguide { color: #17252e; text-shadow: 0 1px 3px #fff; }
.hero-description p { margin-bottom: 3px; font-size: 15px; }
.hero-audioguide p { font-size: 13px; }

.modal .btn-close, .alert .btn-close {
    box-sizing: content-box;
    width: 1em;
    height: 1em;
    padding: 0.5em;
    line-height: 1;
    background: transparent var(--bs-btn-close-bg) center / 1em auto no-repeat;
}
.modal .modal-header { align-items: center; }
.modal .modal-title { margin: 0; }
#public-gallery-carousel .carousel-item img { height: min(65vh, 650px); object-fit: contain; }
#public-gallery-carousel .carousel-control-prev, #public-gallery-carousel .carousel-control-next {
    height: auto;
    padding: 0;
    background: transparent;
    border: 0;
    color: #fff;
}
#public-gallery-carousel .carousel-control-prev-icon, #public-gallery-carousel .carousel-control-next-icon {
    background-color: rgb(0 0 0 / 45%);
    border-radius: 50%;
    padding: 20px;
}
.gallery-thumbnail { padding: 2px; height: auto; line-height: 1; background: transparent; border: 1px solid #ddd; }
.gallery-thumbnail img { width: 70px; height: 50px; object-fit: cover; }
.gallery-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.items-container .iso-item { position: static; }
.items-container .iso-item img { width: 100%; height: auto; }
#inner-message { color: #055160; }

@media (min-width: 1200px) {
    .container { max-width: 1170px; }
}
@media (max-width: 991.98px) {
    #header .logo { float: none; }
    #header .logo img { opacity: 1 !important; height: 45px; width: auto; }
    #header .logo a { background: none; }
    #header .mobile-menu .menu > li { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .animated { animation: none !important; visibility: visible !important; }
}
