.current-menu-item .nav-link, .current-page-ancestor.nav-link {
  border-bottom-color: var(--white);
}
.wp-block-image img, .wp-block-media-text__media img {
  border-radius: 10px;
}
.wp-block-list {
  margin-bottom: 30px;
  padding-left: 20px;
}
.footer {
  position: relative;
  z-index: 1;
}
.footer a {
  font-weight: 400;
}
.footer h2 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 400;
    line-height: 30px;
}
.footer .wp-block-image img, .footer .wp-block-media-text__media img {
  max-width: 200px;
}
a:hover {
  text-decoration: none;
}

/* Skjema - gravity forms tilpasninger */

#foresporsel-popup, #tilleggsinfo-popup {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 50px;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  overflow: scroll;
}

.popup-content {
  background: #fff;
  width: 100%;
  max-width: 500px;
  padding: 40px;
  margin: 50px auto;
  position: relative;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close-popup {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 44px;
  cursor: pointer;
}


.gform_wrapper {
  padding: 0px;
  border-radius: 5px;
  background: #FFF;
}
.gform-theme--foundation .gform_fields {
  row-gap: 10px !important;
}
.gform_footer .button {
  border-radius: 30px !important;
  background-color: #f0be20 !important;
  color: #000 !important;
  padding-left: 30px !important;
  padding-right: 30px !important;
  font-weight: 600 !important;
}
.gform_footer .button:hover {
  background-color: #000 !important;
  color: #f0be20 !important;
}
.ginput_container input, .ginput_container select, .ginput_container textarea {
  border-radius: 5px;
  border: 1px solid #999;
  padding: 15px !important;
  height: auto;
  font-size: 17px !important;
}
.gfield_label {
  margin: 0;
}
.gform_wrapper.gravity-theme .gfield_required {
    color: #F15946;
}
.gform_footer .button {
    border-color: var(--primary);
    background-color: var(--transparent);
    color: var(--primary);
    padding-right: 40px;
    cursor: pointer;
}
.gform_footer .button:hover {
    background-color: var(--primary);
    color: var(--secondary);
}
.wp-embed-aspect-16-9 .wp-block-embed__wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
}

/* Then style the iframe to fit in the container div with full height and width */
.wp-embed-aspect-16-9 .wp-block-embed__wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
}
@media screen and (max-width: 767px) {
  .gform_wrapper {
    padding: 10px;
  }
  .ginput_container input, .ginput_container select, .ginput_container textarea {
    padding: 8px !important;
  }
}