/*
Theme Name: os-museum
Theme URI: osttongraphic.com
Author: danielejost 
Author URI: osttongraphic.com 
Description: no description.
Version: 3.1.1
License: all right reserved
License URI: osttongraphic.com 
Tags: Grid-Layout
Text Domain: os-museum 
Domain Path: /languages/
*/


.entry .no-underline {
  text-decoration: none!important;
}

@media screen and (max-width: 768px) {
  .sm-item-center {
    justify-content:center;
  }
}


/* Update Nov 2023 */
.so-panel .gallery {
  display: grid;
  gap: 12px;
}
.so-panel .gallery.gallery-columns-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.so-panel .gallery.gallery-columns-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.so-panel .gallery.gallery-columns-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.so-panel .gallery.gallery-columns-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
@media screen and (max-width: 576px) {
  .so-panel .gallery.gallery-columns-3,
  .so-panel .gallery.gallery-columns-4,
  .so-panel .gallery.gallery-columns-5,
  .so-panel .gallery.gallery-columns-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.so-panel .gallery .gallery-icon {
  aspect-ratio: 1/1;
}
.so-panel .gallery img {
  height: 100%;
  width: 100%;
  object-fit:contain;
}
.so-panel .gallery .wp-caption-text {
  text-align: center;
}


.so-panel .logos .gallery .gallery-icon {
  aspect-ratio: initial;
  display: flex;
  justify-content: center;
}
.so-panel .logos .gallery img {
  max-width: 100px;
  max-height: 100px;  
}

.list-name ul {
  text-align: center;
  max-width: 60%;
  margin:0 auto 0 auto;
}
.list-name ul li {
  display: inline-block;
  padding-right: 24px;
  padding-left: 24px;
  padding-bottom: 12px;
  position: relative;
  list-style-type: none;
  margin: -4px;
}
.list-name ul li:after {
  content: '';
  position: absolute;
  width: 12px;
  height: 1px;
  background-color: #ddd;
  top: 12px;
  right: 0; 
}
.list-name ul li:before {
  content: '';
  position: absolute;
  width: 12px;
  height: 1px;
  background-color: #ddd;
  top: 12px;
  left:0; 
}
@media screen and (max-width: 576px) {
  .list-name ul {
    max-width: 100%;
  }
  .list-name ul li {
    display: block;
    width: 100%;
  }
  .list-name ul li:after,
  .list-name ul li:before {
    display: none;
  }
}


.musei-italiani {
  width:140px;
}

footer.footer .top .row {
  flex-direction: row-reverse;
}

@media screen and (max-width: 576px) {
  footer.footer .top .row {
    flex-direction: column-reverse;
  }
  footer.footer .top .right {
    justify-content: center;
    width: 100%;    
  }
}


/* Update Dec 2024 */
.thumb-links .so-panel .gallery {
  gap:24px;
}
@media screen and (max-width: 920px) {
  .so-panel .gallery.gallery-columns-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media screen and (max-width: 620px) {
  .so-panel .gallery.gallery-columns-3 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}
.thumb-links .so-panel .gallery .gallery-icon {
  aspect-ratio: 4/3;
}
.thumb-links .so-panel .gallery figure {
  position: relative;
  background-color: #000;
}
.thumb-links .so-panel .gallery img {
  height: 100%;
  width: 100%;
  object-fit:cover;
  margin: 0;
  display: block;
  opacity: 0.6;
}
.thumb-links .so-panel .gallery figcaption {
  position: absolute;
  left: 0;
  top: 50%;
  z-index: 1;
  transform: translatey( -50%);
  right: 0;
  color:#fff;
  font-size: 32px;
  opacity: 1;
}

/* Update Gen 2025 */
#ss-shorts .item {
  /*aspect-ratio: 9 / 16;*/
}
@media screen and (max-width: 576px) {
  #ss-shorts .item {
    padding-left:38px;
    padding-right:38px;
  }
}
.short-size {
  position: relative;
  aspect-ratio: 9 / 16;
  width: 100%;
  height: auto!important;
  background-position: center;
}

.short-size iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Form Events */
.form-events nf-field:nth-child(1),
.form-events nf-field:nth-child(4) {
  width:50%;
  float:left;
}
.form-events nf-field:nth-child(2),
.form-events nf-field:nth-child(5) {
  width:50%;
  padding-left: 24px;
  float:left;
}
.form-events nf-field:nth-child(6) {
  float:left;
  width: 16.6%;
}
.form-events nf-field:nth-child(7),
.form-events nf-field:nth-child(8) {
  width: 16.6%;
  padding-left: 24px;
  float:left;
}
.form-events nf-field:nth-child(10) {
  width: 70%;
  float:left;
}
.form-events nf-field:nth-child(11) {
  width: 30%;
  padding-left: 24px;
  float:left;
}
.form-events input[type="button"] {
  color:#cb0057!important;
}
.form-events select {
  min-height: 42px;
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 8px 12px;
}
@media screen and (max-width: 620px) {
  .form-events nf-field:nth-child(6) {
    width: 33.3%;
  }
  .form-events nf-field:nth-child(7),
  .form-events nf-field:nth-child(8) {
    width: 33.3%;
  }
  .form-events nf-field:nth-child(10) {
    width: 100%;
    float: none;
  }
  .form-events nf-field:nth-child(11) {
    float: none;
    padding-left: 0;
  }
}


/* FIX LIMIT ON MENU */
.navbar {
  max-width: 1800px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 1801px) {
  .navbar ul.sub-menu {
    padding-left: calc((100vw - 1800px) / 2) !important;
  }
}


/* ADD BUTTONS STYLES ON SITE ORIGIN */
.so-widget-sow-button .ow-button-base a.btn-one {
  background-color: #cb0057!important;
}
.so-widget-sow-button .ow-button-base a.btn-one span {
  color: #fff!important;
}
.so-widget-sow-button .ow-button-base a.btn-two {
  background-color: #F5CEDD!important;
  border-color:#F5CEDD!important;
}
.so-widget-sow-button .ow-button-base a.btn-two span {
  color: #cb0057!important;
}
.so-widget-sow-button .ow-button-base a.btn-five {
  background-color: #DF6E9B!important;
  border-color:#DF6E9B!important;
}
.so-widget-sow-button .ow-button-base a.btn-five span {
  color: #fff!important;
}
.so-widget-sow-editor h3 {
  margin-bottom: 22px !important;
}