.artists-single {
    padding-top: 28px;
}
.artists-single__header-image img {
    width: 100%;
    display: block;
    max-height: 560px;
    object-fit: cover;
}
.artists-single__content h2 {
    font-family: Open Sans;
    font-style: normal;
    font-weight: normal;
    font-size: 34px;
    line-height: 1.2;
    text-align: center;
    letter-spacing: 0.02em;
    color: #E52336;
    margin-bottom: 35px;
    text-transform: uppercase;
}
.artists-single__content p {
    font-family: Open Sans;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: #FFFFFF;
    margin-top:0;
    margin-bottom: 30px;
}
.artists-single__content {
    padding-top: 40px;
    padding-bottom: 65px;
    max-width: 720px;
    margin: 0 auto;
}
/*Form-Section*/
.artists-single__form-section {
    background:#fff;
    padding-top:94px;
    padding-bottom: 100px;
}
.artists-single__form {
    max-width: 800px;
    margin:0 auto;
}
.artists-single__form .artists-single__form-title {
    font-family: Open Sans;
    font-style: normal;
    font-weight: 600;
    font-size: 24px;
    line-height: 1.2;
    text-align: center;
    color: #E52336 !important;
    margin-bottom: 38px;
}
.artists-single__form input[type="text"], 
.artists-single__form input[type="email"], 
.artists-single__form textarea {
    background: #F3F3F3 !important;
    border: 1px solid #E1E1E1 !important;
    border-radius: 3px !important;
    font-family: Open Sans !important;
    font-style: normal !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    line-height: 24px !important;
    color: #666666 !important;
    box-shadow: none !important;
    padding:10px 15px !important;
}
.artists-single__form input[type="text"], 
.artists-single__form input[type="email"] {
    height: 50px;
}
.artists-single__form textarea {
    height: 120px;
}
.artists-single__form .frm_primary_label {
    font-family: Open Sans !important;
    font-style: normal;
    font-weight: 600 !important;
    font-size: 16px !important;
    line-height: 24px !important;
    color: #666666 !important;
}
.artists-single__form .frm_style_formidable-style.with_frm_style .form-field {
    margin-bottom: 5px;
}
.artists-single__form .frm_submit {
    text-align: right;
    margin-top: 3px;
}
.artists-single__form span.frm_required {
    color: #e52336 !important;
}
.artists-single__form  button.frm_button_submit.frm_final_submit {
    background: #666666 !important;
    border-radius: 3px;
    border: 1px solid #666666 !important;
    font-family: Open Sans !important;
    font-style: normal;
    font-weight: 600 !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    text-align: center !important;
    color: #FFFFFF !important;
    height:50px;
    width: 200px;
    margin:0 !important;
    transition: 0.15s ease;
}
.artists-single__form  button.frm_button_submit.frm_final_submit:hover {
    background:#E52336 !important;
    border-color:#E52336 !important;
}
.artists-single__form form {
    margin-bottom: 0 !important;
}
.artists-single__form fieldset {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
.frm_style_formidable-style.with_frm_style .frm_error,
.frm_style_formidable-style.with_frm_style .frm_error_style {
    color: #B94A48;
    display:none;
}
.artists-single__form input[aria-invalid="true"], 
.artists-single__form textarea[aria-invalid="true"] {
    border: 1px solid #E52336 !important;
}
/*Video-Section*/
.artists-single__video-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
}
.artist-single__video-col {
    width: 47%;
    padding-bottom: 80px;
}
.artists-single__video-gallery {
    background: #F4F4F4;
    padding-top:100px;
    padding-bottom: 20px;
}
.artist-single__video-wrap {
    padding:56.25% 0 0 0;
    position:relative;
}
.artist-single__video-wrap iframe {
    display: block;
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
}

/*Photo-Gallery*/
.artists-single__photo-gallery {
    padding:100px 0;
    background:#fff;
}
.artist-page__photo-gallery-row {
	 display: grid;
	 grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
	 grid-gap: 0.546rem;
}
.artist-page__photo-gallery-col {
    position: relative;
    display: block;
    cursor: pointer;
}
.artist-page__photo-gallery-col img{
    display:block;
    width:100%;
    height: 100%;
    object-fit:cover;
}
.artist-page__photo-gallery-col span.image-overlay.overlay-type-video {
    display: none !important;
}
@media screen and (max-width:1300px) and (min-width:1201px) {
    .artist-page__photo-gallery-row {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        grid-gap: 0.4rem;
    }
}
@media screen and (max-width:1200px) and (min-width:1101px) {
    .artist-page__photo-gallery-row {
        grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
        grid-gap: 0.4rem;
    }
}
@media screen and (max-width:1100px) and (min-width:1025px) {
    .artist-page__photo-gallery-row {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        grid-gap: 0.4rem;
    }
}
@media screen and (max-width:1024px) and (min-width:992px) {
    .artist-page__photo-gallery-row {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        grid-gap: 0.4rem;
    }
}
@media screen and (max-width:991px) {
    .artists-single__header-image img {
        height: 390px;
        object-fit: cover;
        object-position: 46% center;
    }
    .artists-single__content h2 { 
        font-size:24px;
        margin-bottom: 10px;
    }
    .artists-single__content {
        padding-top: 43px;
        padding-bottom: 15px;
    }
    .artists-single__content p {
        margiin-bottom:25px;
    }
    .artists-single__form-section {
        padding: 43px 0;
        padding-bottom: 50px
    }
    .artists-single__form .artists-single__form-title {
        margin-bottom: 20px;
    }
    .artists-single__form .frm_style_formidable-style.with_frm_style .form-field {
        margin-bottom: 5px;
    }
    .artists-single__form button.frm_button_submit.frm_final_submit {
        width:100%;
    }
    .artists-single__form .frm_submit {
        margin-top:15px;
    }
    .artists-single__video-gallery {
        padding-top: 50px;
        padding-bottom: 20px;
    }
    .artist-single__video-col {
        padding-bottom: 30px;
    }
    .artists-single__photo-gallery {
        background: #391F33;
    }
    .artists-single__photo-gallery {
        padding: 50px 0;
    }
    .artist-page__photo-gallery-row {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
        grid-gap: 0.5rem;
    }
    .artists-single__form input[type="text"], 
    .artists-single__form input[type="email"], 
    .artists-single__form textarea {
        margin-bottom: 10px !important;
    }
}
@media screen and (max-width:743px) {
    .artist-page__photo-gallery-row {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        grid-gap: 1rem;
    }
}
@media screen and (max-width:600px) {
    .artist-single__video-col {
        width: 100%;
    }
}
@media screen and (max-width:442px) {
    .artist-page__photo-gallery-row {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        grid-gap: 1rem;
    }
}
@media screen and (max-width:395px) {
    .artist-page__photo-gallery-row {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        grid-gap: 1rem;
    }
}
@media screen and (max-width:348px) {
    .artist-page__photo-gallery-row {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        grid-gap:1rem;
    }
    .artist-page ul.artist-page__filter li a {
        font-size:11px;
    }
    .artist-page ul.artist-page__filter li a {
        padding: 20px 4px;
    }
}

/*photo-gallery-modal*/
.photo-gallery-modal {
    position: fixed;
    display: none;
    z-index: 99999999999;
    padding-top: 0px;
    padding-bottom: 0px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background: rgba(57, 31, 51, 0.75);
}
.photo-gallery-modal-wrap {
    max-width: 800px;
    width: 100%;
    border: 0;
    border-radius:3px;
    background: #fff;
    font-size: .875rem;
    background-color: rgba(255,255,255);
    background-clip: padding-box;
    box-shadow: 0 0.25rem 0.75rem rgb(0 0 0 / 10%);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    overflow: hidden;
    margin: 2.75rem auto;
}
.photo-gallery-modal-body {
    padding: 50px;
}
.photo-gallery-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 50px;
}
.photo-gallery-modal-wrap button.close {
    z-index: 9;
    display: flex;
    display: -ms-flexbox;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.25s ease;
    background: transparent;
    appearance: none;
    background: transparent;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 0;
    padding: 0;
    width: 50px;
    height: 50px;
    color:#fff !important;
    opacity: 1;
    background: #391F33 !important;
    border-radius: 3px;
    transition: 0.15s ease;
}
.photo-gallery-modal-wrap button.close:focus {
    outline:none;
}
.photo-gallery-modal-wrap button.close:hover {
    background: #E52336 !important;
    border: 0;
}
.photo-gallery-modal-header h2 {
    font-family: Open Sans;
    font-style: normal;
    font-weight: bold;
    max-width: 428px;
    margin-bottom: 0;
    font-size: 24px;
    line-height: 1.3;
    text-align: center;
    color: #666666 !important;
    margin-top: 0;
}
.photo-gallery-modal-content .photo-gallery-btn {
    background: #666 !important;
    width: 240px;
    border-radius: 3px;
    color: #fff !important;
    display:flex;
    align-items:center;
    justify-content:center;
    height: 50px;
    cursor: pointer;
    font-family: Open Sans;
    font-style: normal;
    font-weight: 600;
    font-size: 14px;
    line-height: 14px;
    text-align: center;
    margin:0 auto;
    text-decoration: none;
    margin-top:45px;
    transition: 0.15s ease;
}
.photo-gallery-modal-content .photo-gallery-btn:hover {
    background:#E52336 !important;
    color:#fff !important;
    
}
.photo-gallery-modal-content .photo-gallery-btn:focus {
    outline:none;
    box-shadow: none;
}
.photo-gallery-modal-image img {
    width: 100%;
    display:block;
}
.photo-gallery-modal .paginator-center.text-color.text-center ul {
    padding: 0;
    list-style-type: none;
    margin: 0;
    display: flex;
    align-items: center;
    width: 60px;
    justify-content: space-between;
    position: relative;
    height: 50px;
}
.photo-gallery-modal .paginator-center.text-color.text-center ul li { 
    transition: 0.15s ease;
    cursor:pointer;
    width: 50px;
    height: 50px;
}
.photo-gallery-modal li.photo-gallery-prev.slick-arrow {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 20px;
    margin-left: -20px;
}
.photo-gallery-modal li.photo-gallery-next.slick-arrow {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 20px;
    margin-right: -20px;
}
.photo-gallery-modal .paginator-center.text-color.text-center ul:after {
    position: absolute;
    content: '';
    width: 1px;
    height: 50px;
    background: rgba(102, 102, 102, 0.25);
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}
.photo-gallery-modal .paginator-center.text-color.text-center ul li svg{
    display: block;
}
.photo-gallery-modal .paginator-center.text-color.text-center li:hover svg path {
    fill: #E52336;
}
li.photo-gallery-next.slick-arrow svg {
    transform: rotate(180deg);
}
@media screen and (min-width: 991px) {
    .photo-gallery-modal-content h2 {
        display: none;
    }
}
@media screen and (max-width: 991px) {
    .photo-gallery-modal-wrap {
        animation:none;
    }
    .photo-gallery-modal-header h2 {
        display: none;
    }
    .photo-gallery-modal-content h2 {
        font-family: Open Sans;
        font-style: normal;
        font-weight: bold;
        font-size: 24px;
        line-height: 1.2;
        color: #666666 !important;
        margin-bottom: 20px;
    }
    .photo-gallery-modal-header {
        margin-bottom: 23px;
    }
    .photo-gallery-modal-content .photo-gallery-btn {
        margin-top:25px;
        width:100%;
    }
    .photo-gallery-modal-wrap {
        max-width: 90%;
    }
    .photo-gallery-modal-body {
        padding: 20px;
    }
    .photo-gallery-modal-header h2 {
        max-width: 100%;
    }
    .photo-gallery-modal .paginator-center.text-color.text-center ul {
        width: 75px;
    }
    .photo-gallery-modal .paginator-center.text-color.text-center ul li { 
        width: 60px;
        height: 60px;
    }
}

/* Vestlandsfjes Template Styles - Start */
.vestlandsfjes-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: 'Open Sans', sans-serif;
}

.vestlandsfjes-title {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    color: #333;
    margin-bottom: 50px;
    position: relative;
}

.vestlandsfjes-title:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #E52336;
}

/* Header section with profile image and info */
.vestlandsfjes-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
    align-items: stretch; /* Force equal heights with grid alignment */
    min-height: 0; /* Fix Firefox grid sizing issues */
}

.vestlandsfjes-profile {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    align-self: stretch;
    display: flex; /* Make the container a flex container */
}

.vestlandsfjes-profile:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.vestlandsfjes-profile img {
    display: block;
    width: 100%;
    height: 100%; /* Fill the entire container */
    object-fit: cover;
    flex: 1; /* Take up all available space in the flex container */
}

.vestlandsfjes-info {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.vestlandsfjes-info:before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: rgba(229, 35, 54, 0.03);
    z-index: 0;
}

.vestlandsfjes-info-grid {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 1;
}

/* Fallback for older browsers that don't support gap */
@supports not (gap: 20px) {
    .vestlandsfjes-info-grid > * + * {
        margin-top: 20px;
    }
}

.vestlandsfjes-info-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.vestlandsfjes-info-item:hover {
    -webkit-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
    -webkit-box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.vestlandsfjes-info-content {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
}

.vestlandsfjes-info-content strong {
    color: #1f8089!important;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 3px;
    display: block;
}

.vestlandsfjes-info-content span {
    color: #555;
    font-size: 15px;
}

/* Fremmedspråk section spacing */
.vestlandsfjes-fremmedsprak-section {
    margin-top: 15px;
}

/* Row containers */
.vestlandsfjes-info-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 15px;
}

/* Fallback for older browsers that don't support gap */
@supports not (gap: 15px) {
    .vestlandsfjes-info-row > * + * {
        margin-left: 15px;
    }
}

/* Row with 4 items (Fødselsår, Høyde, Øyne, Hår) */
.vestlandsfjes-info-row-4 {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 15px;
}

/* Fallback for older browsers that don't support gap */
@supports not (gap: 15px) {
    .vestlandsfjes-info-row-4 > * + * {
        margin-left: 15px;
    }
}

.vestlandsfjes-info-row-4 .vestlandsfjes-info-item {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-width: 0; /* Allow items to shrink */
}

/* Full width rows (Språk, Fremmedspråk) */
.vestlandsfjes-info-row-full {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.vestlandsfjes-info-item-full {
    width: 100%;
}

.vestlandsfjes-info p {
    margin: 0 0 15px;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    display: flex;
    align-items: center;
}

.vestlandsfjes-info p:last-child {
    margin-bottom: 0;
}

.vestlandsfjes-info p strong {
    min-width: 140px;
    color: #333;
    font-weight: 600;
    position: relative;
    padding-left: 20px;
}

.vestlandsfjes-info p strong:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: #E52336;
    border-radius: 50%;
}

/* Bio section - now below info */
.vestlandsfjes-bio {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    -webkit-box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: relative;
}

.vestlandsfjes-bio:before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 80px;
    color: rgba(229, 35, 54, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.vestlandsfjes-bio p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin: 0 0 20px;
    position: relative;
    z-index: 1;
}

.vestlandsfjes-bio p:last-child {
    margin-bottom: 0;
}

/* Media section with video and image grid */
.vestlandsfjes-media {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 40px 1fr;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 100px; /* Further increased margin to prevent form overlap */
}

/* Grid fallback for IE */
@supports not (display: grid) {
    .vestlandsfjes-media {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
    }
    
    .vestlandsfjes-media > * {
        width: calc(50% - 20px);
    }
}

.vestlandsfjes-video {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    -webkit-box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.vestlandsfjes-video iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: none;
}

.vestlandsfjes-grid {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 15px 1fr;
    -ms-grid-rows: 1fr 15px 1fr;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
    height: 100%;
}

/* Grid fallback for IE */
@supports not (display: grid) {
    .vestlandsfjes-grid {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
    }
    
    .vestlandsfjes-grid > * {
        width: calc(50% - 7.5px);
        margin-bottom: 15px;
    }
}

.vestlandsfjes-grid__item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    -webkit-transition: transform 0.3s ease, box-shadow 0.3s ease;
    -o-transition: transform 0.3s ease, box-shadow 0.3s ease;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vestlandsfjes-grid__item:hover {
    -webkit-transform: translateY(-5px);
    -ms-transform: translateY(-5px);
    transform: translateY(-5px);
    -webkit-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.vestlandsfjes-grid__item img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    display: block;
    -webkit-transition: transform 0.5s ease;
    -o-transition: transform 0.5s ease;
    transition: transform 0.5s ease;
}

.vestlandsfjes-grid__item:hover img {
    -webkit-transform: scale(1.05);
    -ms-transform: scale(1.05);
    transform: scale(1.05);
}

/* IMDb logo styling */
.vestlandsfjes-imdb {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5c518;
    padding: 10px;
}

.imdb-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.vestlandsfjes-imdb img {
    max-width: 80%;
    height: auto;
    object-fit: contain;
}

/* Modal styles */
.vestlandsfjes-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.vestlandsfjes-modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 1240px;
    top: 50%;
    transform: translateY(-50%);
}

.vestlandsfjes-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    z-index: 1;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
}

.vestlandsfjes-modal-close:hover,
.vestlandsfjes-modal-close:focus {
    color: #E52336;
    text-decoration: none;
    cursor: pointer;
}

.vestlandsfjes-modal-image-container {
    height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.vestlandsfjes-modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Prevent body scrolling when modal is open */
body.vestlandsfjes-modal-open {
    overflow: hidden;
}

/* Mobile responsiveness for vestlandsfjes */
@media screen and (max-width: 1200px) {
    .vestlandsfjes-container {
        padding: 0 20px;
    }
}

@media screen and (max-width: 991px) {
    .vestlandsfjes-container {
        margin-bottom: 60px;
    }
    
    .vestlandsfjes-title {
        font-size: 32px;
        margin-bottom: 30px;
    }
    
    .vestlandsfjes-header {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 40px;
    }
    
    .vestlandsfjes-profile {
        height: 450px; /* Fixed height on tablets */
    }
    
    .vestlandsfjes-profile img {
        height: 100%;
        object-position: top center;
    }
    
    .vestlandsfjes-info-wrapper {
        min-height: auto;
    }
    
    .vestlandsfjes-info p strong {
        min-width: 130px;
    }
    
    .vestlandsfjes-media {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 40px;
    }
    
    .vestlandsfjes-video {
        min-height: 350px;
    }
    
    .vestlandsfjes-video iframe,
    .vestlandsfjes-video video {
        min-height: 350px;
    }
    
    .vestlandsfjes-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        grid-gap: 12px;
        height: auto; /* Let it grow naturally */
        min-height: 350px;
    }
    
    .vestlandsfjes-modal-image-container {
        height: 500px;
    }
}

@media screen and (max-width: 767px) {
    .vestlandsfjes-container {
        padding: 0 15px;
        margin-bottom: 50px;
    }
    
    .vestlandsfjes-title {
        font-size: 26px;
        margin-bottom: 25px;
    }
    
    .vestlandsfjes-title:after {
        width: 60px;
        bottom: -12px;
    }
    
    .vestlandsfjes-header {
        gap: 25px;
        margin-bottom: 30px;
    }
    
    .vestlandsfjes-profile {
        height: 380px; /* Shorter on phones */
        border-radius: 6px;
    }
    
    .vestlandsfjes-info-wrapper {
        gap: 15px;
    }
    
    .vestlandsfjes-bio,
    .vestlandsfjes-info {
        padding: 20px;
        border-radius: 6px;
    }
    
    .vestlandsfjes-bio:before {
        font-size: 60px;
        top: 15px;
        left: 15px;
    }
    
    .vestlandsfjes-bio p,
    .vestlandsfjes-info p {
        font-size: 15px;
    }
    
    .vestlandsfjes-info p {
        margin: 0 0 12px;
    }
    
    .vestlandsfjes-info p strong {
        min-width: 110px;
        font-size: 15px;
        padding-left: 15px;
    }
    
    .vestlandsfjes-info p strong:before {
        width: 6px;
        height: 6px;
    }
    
    .vestlandsfjes-video {
        min-height: 250px;
    }
    
    .vestlandsfjes-video iframe,
    .vestlandsfjes-video video,
    .vestlandsfjes-video-placeholder {
        min-height: 250px;
    }
    
    .vestlandsfjes-grid {
        min-height: 250px;
    }
    
    .vestlandsfjes-modal-content {
        width: 95%;
    }
    
    .vestlandsfjes-modal-image-container {
        height: 400px;
    }
    
    /* Keep the profile aligned on mobile */
    .vestlandsfjes-profile {
        margin-bottom: 0;
    }
    
    /* On mobile we stack vertically, so height matching isn't needed */
    .vestlandsfjes-header {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .vestlandsfjes-title {
        font-size: 24px;
    }
    
    .vestlandsfjes-grid {
        grid-template-columns: 1fr;
    }
    
    .vestlandsfjes-info p {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .vestlandsfjes-info p strong {
        margin-bottom: 5px;
    }
    
    .vestlandsfjes-modal-image-container {
        height: 350px;
    }
}

/* Video placeholder styles */
.vestlandsfjes-video-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    height: 100%;
    min-height: 400px;
    border-radius: 8px;
}

.placeholder-content {
    text-align: center;
    color: #999;
}

.placeholder-content .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
}

.placeholder-content p {
    font-size: 16px;
    margin: 0;
}

/* Fix for profile and info-wrapper height matching */
.vestlandsfjes-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
    align-items: stretch;
}

.vestlandsfjes-profile,
.vestlandsfjes-info-wrapper {
    min-height: 500px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.vestlandsfjes-profile {
    display: flex;
}

.vestlandsfjes-profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.vestlandsfjes-info-wrapper {
    display: flex;
    flex-direction: column;
}

.vestlandsfjes-info {
    flex: 0 0 auto;
}

.vestlandsfjes-bio {
    flex: 1 1 auto;
}

@media screen and (max-width: 767px) {
    .vestlandsfjes-profile,
    .vestlandsfjes-info-wrapper {
        min-height: auto;
    }
}

/* Add spacing between info and bio sections */
.vestlandsfjes-info {
    margin-bottom: 20px;
    border-radius: 8px;
}

.vestlandsfjes-bio {
    border-radius: 8px;
}

/* Update the info-wrapper to have gap between elements */
.vestlandsfjes-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

@media screen and (max-width: 767px) {
    .vestlandsfjes-container {
        margin-bottom: 100px; /* Extra space at the end of container on mobile */
    }
    
    .vestlandsfjes-header {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .vestlandsfjes-profile,
    .vestlandsfjes-info-wrapper {
        flex: 1 1 100%;
        max-width: 100%;
        min-height: auto;
    }
    
    .vestlandsfjes-profile {
        height: 400px;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .vestlandsfjes-info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .vestlandsfjes-info {
        padding: 20px;
    }
    
    .vestlandsfjes-profile img {
        position: absolute;
    }
}

/* Row containers */
.vestlandsfjes-info-row {
    display: flex;
    gap: 15px;
}

/* Row with 4 items (Fødselsår, Høyde, Øyne, Hår) */
.vestlandsfjes-info-row-4 {
    display: flex;
    gap: 15px;
}

.vestlandsfjes-info-row-4 .vestlandsfjes-info-item {
    flex: 1;
    min-width: 0; /* Allow items to shrink */
}

/* Full width rows (Språk, Fremmedspråk) */
.vestlandsfjes-info-row-full {
    display: flex;
}

.vestlandsfjes-info-item-full {
    width: 100%;
}

/* Fix for media section with video and image grid */
.vestlandsfjes-media {
    height: 329px !important; /* Fixed height as requested */
    margin-bottom: 120px; /* Extra spacing to prevent form overlap */
}

/* Tablet-specific media query to fix form overlap issues */
@media screen and (max-width: 1024px) {
    .vestlandsfjes-media {
        margin-bottom: 150px; /* Even more space for tablets */
    }
    
    .vestlandsfjes-container {
        margin-bottom: 430px; /* Extra container space for tablets/mobile */
    }
    
    /* Ensure form doesn't overlap */
    .artists-single__form-section {
        position: relative;
        z-index: 1; /* Ensure form stays on top if needed */
        margin-top: 30px; /* Add extra space above form */
    }
}

/* Make sure grid and video sections have the right height */
.vestlandsfjes-grid,
.vestlandsfjes-video {
    height: 329px;
}

/* Ensure grid items have consistent heights */
.vestlandsfjes-grid__item {
    height: calc(329px / 2 - 7.5px); /* Half of container minus half of gap */
}

/* Update mobile responsive styles to handle the new row-based layout properly */
@media screen and (max-width: 767px) {
    .vestlandsfjes-info-grid {
        flex-direction: column;
        gap: 15px;
    }
    
    /* On mobile, stack the 4-item row into 2x2 grid */
    .vestlandsfjes-info-row-4 {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .vestlandsfjes-info-row-4 .vestlandsfjes-info-item {
        flex: 1 1 calc(50% - 6px);
        min-width: calc(50% - 6px);
    }
}

@media screen and (max-width: 991px) {
    .vestlandsfjes-title {
        font-size: 32px;
        margin-bottom: 50px;
    }
    
    .vestlandsfjes-header {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .vestlandsfjes-media {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .vestlandsfjes-video iframe {
        min-height: 300px;
    }
    
    .vestlandsfjes-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    
    .vestlandsfjes-modal-image-container {
        height: 500px;
    }
}

@media screen and (max-width: 767px) {
    .vestlandsfjes-title {
        font-size: 28px;
    }
    
    .vestlandsfjes-bio {
        padding: 25px;
    }
    
    .vestlandsfjes-info {
        padding: 20px;
    }
    
    .vestlandsfjes-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .vestlandsfjes-info-item {
        padding: 12px;
    }
    
    .vestlandsfjes-modal-image-container {
        height: 400px;
    }
    
    /* Keep the profile aligned on mobile */
    .vestlandsfjes-profile {
        margin-bottom: 0;
    }
    
    /* On mobile we stack vertically, so height matching isn't needed */
    .vestlandsfjes-header {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .vestlandsfjes-title {
        font-size: 24px;
    }
    
    .vestlandsfjes-grid {
        grid-template-columns: 1fr;
    }
    
    .vestlandsfjes-info p {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .vestlandsfjes-info p strong {
        margin-bottom: 5px;
    }
    
    .vestlandsfjes-modal-image-container {
        height: 350px;
    }
}

/* Extra small devices */
@media screen and (max-width: 350px) {
    .vestlandsfjes-profile {
        height: 280px;
    }
    
    .vestlandsfjes-bio, 
    .vestlandsfjes-info {
        padding: 15px;
    }
    
    .vestlandsfjes-bio p,
    .vestlandsfjes-info p {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .vestlandsfjes-video {
        min-height: 200px;
    }
    
    .vestlandsfjes-grid__item {
        height: 150px;
    }
}

/* Responsive styles */
@media screen and (max-width: 991px) {
    .vestlandsfjes-title {
        font-size: 32px;
        margin-bottom: 40px;
    }
    
    .vestlandsfjes-header {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .vestlandsfjes-media {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .vestlandsfjes-video iframe {
        min-height: 300px;
    }
    
    .vestlandsfjes-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    
    .vestlandsfjes-modal-image-container {
        height: 500px;
    }
}

@media screen and (max-width: 767px) {
    .vestlandsfjes-title {
        font-size: 28px;
    }
    
    .vestlandsfjes-bio {
        padding: 25px;
    }
    
    .vestlandsfjes-info {
        padding: 20px;
    }
    
    .vestlandsfjes-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .vestlandsfjes-info-item {
        padding: 12px;
    }
    
    .vestlandsfjes-modal-image-container {
        height: 400px;
    }
    
    /* Keep the profile aligned on mobile */
    .vestlandsfjes-profile {
        margin-bottom: 0;
    }
    
    /* On mobile we stack vertically, so height matching isn't needed */
    .vestlandsfjes-header {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .vestlandsfjes-title {
        font-size: 24px;
    }
    
    .vestlandsfjes-grid {
        grid-template-columns: 1fr;
    }
    
    .vestlandsfjes-info p {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .vestlandsfjes-info p strong {
        margin-bottom: 5px;
    }
    
    .vestlandsfjes-modal-image-container {
        height: 350px;
    }
}
