.media-gallery-with-text__media,
.media-gallery-with-text__text {
    display:flex;
    flex-direction: column;
}

.media-gallery-with-text__media {
    justify-content: center;
}

.media-gallery-with-text__text {
    justify-content: flex-start;
}

.media-gallery-with-text img {
    border-radius: 15px;
}

.media-preview img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    object-position: center;
    margin-bottom: 11px;
}

.media-gallery-with-text__media a {
    position: relative;
}

.video__overlay {
    position: absolute;
    width: 100%;
    height: calc(100% - 11px);
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
}

.media-preview,
.media-gallery-thumbs {
    padding-right:18px;
}

.media-gallery-thumbs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

.video-thumbnail__overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.media-gallery-thumbs .media-group__link {
    position: relative;
}

.media-gallery-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    cursor: pointer;
}

.media-gallery-thumbs .thumb {
    width: 150px;
    height: 108px;
    border-radius: 15px;
    padding: 5px 0;
    cursor: pointer;
}

.media-gallery-thumbs .thumb.active {
    border: 2px solid var(--wp--preset--color--pale-pink);
    padding: 5px;
}

.media-gallery-with-text__text h1 {
    font-size: 30px;
    line-height: 1.3em;
    padding-bottom: 20px;
    color: #252525;
}

.media-gallery-with-text__text__wrap {
    max-width: 564px;
    margin-left: auto;
}

.media-gallery-with-text__text__wrap .btn + .btn {
    margin-left: 25px;
}

.utility-links {
    margin-top: 50px;
}

.utility-links a {
    border-bottom: none;
}

.utility-links a:hover {
    transition:unset;
}

.utility-links .print-link {
    margin-left: 10px;
}

@media (min-width: 768px) {
    .media-gallery-with-text__text h1 {
        font-size: 40px;
    }
}

@media (min-width: 1200px) {
    .media-gallery-with-text__text h1 {
        font-size: 44px;
        padding-bottom: 30px;
    }
}

@media print {
    .header-top.hidden-xs-down.hidden-lg,
    .header-right,
    .header-bottom,
    .navbar,
    .masthead,
    footer{
        display:none !important;
    }
}

@media (max-width: 1199px) {

    .row.media-gallery-with-text__row {
        gap: 50px;
    }

    .media-gallery-thumbs {
        justify-content:center;
    }

    .media-gallery-with-text__text__wrap * {
    text-align: center;
    }

    .media-gallery-with-text__text__wrap {
        max-width: 100%;
    }

    .media-gallery-with-text__text {
        order:0;
    }

    .media-gallery-with-text__media {
        order:1;
    }
}

@media (max-width: 600px) {
    .media-gallery-thumbs {
        gap: 10px;
    }

    .video-thumbnail__overlay svg {
        width: 30px !important;
        height: 33px !important;
    }
}

/* modal */
.share-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 9999;
	align-items: center;
	justify-content: center;
}
.share-modal.is-open {
	display: flex;
}
.share-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}
.share-modal__dialog {
	position: relative;
	background: #fff;
	border-radius: 8px;
	width: 100%;
	max-width: 400px;
	margin: 1rem;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}
.share-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.25rem 1.5rem;
	border-bottom: 1px solid #e5e5e5;
}
.share-modal__title {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 600;
	color:#252525;
}
.share-modal__close {
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.25rem;
	color: #252525;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transition: color 0.2s, background 0.2s;
}
.share-modal__close:hover {
	color: #000;
	background: #f0f0f0;
}
.share-modal__body {
	padding: 0.75rem 0;
}

.share-modal-container {
    display: flex;
    justify-content: center;
}

.share-modal__option {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	padding: 0.875rem 1.5rem;
	text-decoration: none;
	color: #222;
	transition: background 0.15s;
	position: relative;
}
.share-modal__option:hover {
	background: #f5f5f5;
}
.share-modal__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #f0f0f0;
	flex-shrink: 0;
}
.share-modal__label {
	font-size: 0.95rem;
	font-weight: 500;
}
.share-modal__copy-feedback {
	display: none;
	margin-left: auto;
	font-size: 0.8rem;
	color: green;
	font-weight: 500;
}
.share-modal__copy-feedback.is-visible {
	display: block;
}