/*
Theme Name: OceanWP Child Theme
Theme URI: https://oceanwp.org/
Description: Child theme customizations for the site gallery.
Author: Snow Grouse
Template: oceanwp
Version: 1.0.0
Text Domain: oceanwp-child
*/

.sg-gallery {
	max-width: 1120px;
	margin: 0 auto;
	padding: 32px 20px 56px;
	color: #1e1e1e;
	--sg-gallery-accent: #65a0b3;
	--sg-gallery-accent-dark: #4f8698;
	--sg-gallery-accent-light: #8bbccc;
	--sg-gallery-accent-soft: #d8e9ef;
	--sg-gallery-accent-ink: #173945;
}

.sg-gallery--guest {
	max-width: none;
	min-height: calc(100vh - 180px);
	display: grid;
	align-items: center;
	padding-block: 48px;
}

.sg-gallery p,
.sg-gallery .sg-gallery__content,
.sg-gallery .sg-gallery__current,
.sg-gallery .sg-gallery__empty,
.sg-gallery .sg-gallery-dialog__empty,
.sg-gallery .sg-gallery-dialog__meta,
.sg-gallery .sg-gallery-dialog__hint,
.sg-gallery .sg-gallery-dialog__status,
.sg-gallery .sg-gallery-upload__text {
	font-size: 1.0625rem;
	line-height: 1.7;
}

.sg-gallery [hidden] {
	display: none !important;
}

.sg-gallery__header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 24px;
	margin-bottom: 24px;
	padding-bottom: 20px;
	border-bottom: 1px solid #ddd;
}

.sg-gallery__guest-shell {
	width: 100%;
	display: flex;
	justify-content: center;
}

.sg-gallery__guest-card {
	width: min(100%, 920px);
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(320px, 420px);
	gap: 28px;
	align-items: center;
	padding: 36px;
	border: 1px solid #d7dedf;
	border-radius: 28px;
	background: linear-gradient(135deg, #f7fbfc 0%, #ffffff 58%, #eef5f7 100%);
	box-shadow: 0 24px 60px rgba(23, 57, 69, 0.12);
}

.sg-gallery__guest-copy {
	text-align: center;
	justify-items: center;
}

.sg-gallery__guest-copy .sg-gallery__content {
	max-width: 34rem;
	margin: 0 auto 18px;
}

.sg-gallery__guest-copy .sg-gallery__empty {
	max-width: 30rem;
	margin: 0 auto;
	padding: 0;
	background: transparent;
	color: var(--sg-gallery-accent-ink);
	font-size: 1.125rem !important;
}

.sg-gallery__login-card {
	padding: 28px;
	border-radius: 24px;
	background: #ffffff;
	box-shadow: 0 18px 40px rgba(23, 57, 69, 0.1);
}

.sg-gallery__login-title {
	margin: 0 0 18px;
	text-align: center;
	font-size: 1.6rem;
	line-height: 1.2;
	color: #1d2327;
}

.sg-gallery__login-form form {
	display: grid;
	gap: 14px;
	margin: 0;
}

.sg-gallery__login-form label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	color: #1d2327;
}

.sg-gallery__login-form input[type="text"],
.sg-gallery__login-form input[type="password"] {
	width: 100%;
	min-height: 48px;
	padding: 0 14px;
	border: 1px solid #b8c4c8;
	border-radius: 14px;
	background: #fff;
	font-size: 1rem;
	color: #1d2327;
}

.sg-gallery__login-form input[type="text"]:focus,
.sg-gallery__login-form input[type="password"]:focus {
	border-color: var(--sg-gallery-accent-dark);
	outline: 2px solid rgba(101, 160, 179, 0.2);
	outline-offset: 1px;
}

.sg-gallery__login-form .login-remember {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 0;
	color: #50575e;
}

.sg-gallery__login-form .login-remember label {
	margin: 0;
	font-weight: 500;
	color: #50575e;
}

.sg-gallery__login-form .login-submit {
	margin: 4px 0 0;
	text-align: center;
}

.sg-gallery__login-form .login-submit .button {
	width: 100%;
	min-height: 48px;
	font-size: 1rem;
	font-weight: 600;
}

.sg-gallery__title {
	margin: 0 0 8px;
	font-size: clamp(2rem, 3vw, 2.8rem);
	line-height: 1.05;
}

.sg-gallery__content {
	max-width: 720px;
	margin-bottom: 24px;
	color: #50575e;
}

.sg-gallery__controls {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: flex-end;
}

.sg-gallery__toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	width: 100%;
	margin-bottom: 24px;
	flex-wrap: wrap;
}

.sg-gallery__toolbar-meta {
	display: grid;
	gap: 6px;
}

.sg-gallery__album-switcher {
	display: grid;
	gap: 6px;
	max-width: 320px;
}

.sg-gallery__album-switcher-select {
	width: 100%;
	min-height: 42px;
	padding: 0 12px;
	border: 1px solid #b8c4c8;
	border-radius: 12px;
	background: #fff;
	color: #1d2327;
	font-size: 1.25rem;
	font-weight: 500;
}

.sg-gallery__album-switcher-select option {
	font-size: inherit;
}

.sg-gallery__album-switcher-select:focus {
	border-color: var(--sg-gallery-accent-dark);
	outline: 2px solid rgba(101, 160, 179, 0.2);
	outline-offset: 1px;
}

.sg-gallery__album-heading {
	margin: 0;
	line-height: 1.2;
	color: #1d2327;
}

.sg-gallery__album-heading-count {
	font-size: 0.76em;
	font-weight: 500;
	white-space: nowrap;
	opacity: 0.8;
}

.sg-gallery__toolbar-actions {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
	justify-content: flex-end;
	margin-left: auto;
}

.sg-gallery__toolbar-primary-actions,
.sg-gallery__toolbar-manage-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: flex-end;
}

.sg-gallery__toolbar-primary-actions {
	align-items: center;
}

.sg-gallery__toolbar-manage-actions[hidden] {
	display: none !important;
}

.sg-gallery .button,
.sg-gallery .button.button-primary,
.sg-gallery .button.button-link-delete,
.sg-gallery .button.button-danger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 18px;
	border-radius: 999px;
	border: 1px solid var(--sg-gallery-accent);
	background: var(--sg-gallery-accent);
	color: #fff;
	line-height: 1.2;
	text-align: center;
	box-shadow: none;
	text-shadow: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sg-gallery .button:hover,
.sg-gallery .button:focus,
.sg-gallery .button.button-primary:hover,
.sg-gallery .button.button-primary:focus,
.sg-gallery .button.button-link-delete:hover,
.sg-gallery .button.button-link-delete:focus,
.sg-gallery .button.button-danger:hover,
.sg-gallery .button.button-danger:focus {
	background: var(--sg-gallery-accent-dark);
	border-color: var(--sg-gallery-accent-dark);
	color: #fff;
	transform: translateY(-1px);
}

.sg-gallery .button.button-link-delete,
.sg-gallery .button.button-danger {
	background: #b42318;
	border-color: #b42318;
}

.sg-gallery .button.button-link-delete:hover,
.sg-gallery .button.button-link-delete:focus,
.sg-gallery .button.button-danger:hover,
.sg-gallery .button.button-danger:focus {
	background: #912018;
	border-color: #912018;
}

.sg-gallery__toolbar-actions [data-gallery-toggle-images]:disabled {
	background: #e8eaed;
	border-color: #c4c7cc;
	color: #7b8088;
	box-shadow: none;
	cursor: not-allowed;
	opacity: 1;
}

.sg-gallery__bulk-delete[hidden] {
	display: none !important;
}

.sg-gallery__back-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--sg-gallery-accent-dark);
	font-weight: 600;
	text-decoration: none;
	transition: color 0.2s ease;
}

.sg-gallery__back-link:hover,
.sg-gallery__back-link:focus {
	color: var(--sg-gallery-accent-ink);
	text-decoration: underline;
}

.sg-gallery__album-chip-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.sg-gallery__album-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: 999px;
	border: 1px solid #d0d7de;
	background: #fff;
	color: #1d2327;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.sg-gallery__album-chip:hover,
.sg-gallery__album-chip:focus {
	background: #f6f7f7;
	border-color: #8c8f94;
	color: #1d2327;
}

.sg-gallery__album-chip.is-active {
	background: #1d2327;
	border-color: #1d2327;
	color: #fff;
}

.sg-gallery__current {
	font-weight: 600;
	color: #1d2327;
}

.sg-gallery__empty {
	padding: 18px 20px;
	border-radius: 12px;
	background: #f6f7f7;
	color: #50575e;
    font-size: 1.3rem !important;
}

.sg-gallery__album-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
}

.sg-gallery-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	border: 1px solid #ddd7cf;
	border-radius: 4px;
	background: #fff;
	text-decoration: none;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.sg-gallery-card:hover,
.sg-gallery-card:focus {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(16, 24, 40, 0.12);
}

.sg-gallery-card__media {
	display: grid;
	place-items: center;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: linear-gradient(180deg, #f4efe8 0%, #e7dfd4 100%);
}

.sg-gallery-card__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center center;
	display: block;
	transition: transform 0.35s ease;
}

.sg-gallery-card:hover .sg-gallery-card__media img,
.sg-gallery-card:focus .sg-gallery-card__media img {
	transform: scale(1.06);
}

.sg-gallery-card__placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	font-size: 0.95rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #7a6f63;
	background: linear-gradient(180deg, #f4efe8 0%, #e7dfd4 100%);
}

.sg-gallery-card__body {
	display: flex;
	align-items: center;
	padding: 18px 20px;
	min-height: 72px;
	background: #f8f5ef;
	border-top: 1px solid #e6ddd2;
	color: #8a5d2f;
}

.sg-gallery-card__title {
	font-size: 1.5rem !important;
	line-height: 1.45;
	font-weight: 600;
}

.sg-gallery-card__count {
	font-size: 0.78em;
	font-weight: 500;
	white-space: nowrap;
	opacity: 0.8;
}

.sg-gallery .blocks-gallery-grid,
.sg-gallery .wp-block-gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sg-gallery .blocks-gallery-item {
	margin: 0;
	list-style: none;
	position: relative;
	min-width: 0;
	border-radius: 12px;
	overflow: hidden;
	background: #f6f7f7;
	aspect-ratio: 1 / 1;
}

.sg-gallery.is-managing-images .blocks-gallery-item {
	cursor: pointer;
}

.sg-gallery.is-managing-images .blocks-gallery-item a {
	pointer-events: none;
}

.sg-gallery .blocks-gallery-item a,
.sg-gallery .blocks-gallery-item figure {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
}

.sg-gallery .blocks-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.2s ease;
}

.sg-gallery .blocks-gallery-item:hover img,
.sg-gallery .blocks-gallery-item:focus-within img {
	transform: scale(1.03);
}

.sg-gallery-image-select,
.sg-gallery-image-delete {
	position: absolute;
	z-index: 3;
}

.sg-gallery-image-select {
	top: 12px;
	left: 12px;
	position: absolute;
	display: inline-grid;
	place-items: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 8px 18px rgba(16, 24, 40, 0.18);
	cursor: pointer;
	line-height: 0;
	overflow: hidden;
}

.sg-gallery.is-managing-images .blocks-gallery-item[data-gallery-image-item]::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	border: 2px solid transparent;
	background: rgba(255, 255, 255, 0.02);
	pointer-events: none;
	transition: background-color 0.15s ease, border-color 0.15s ease;
	z-index: 1;
}

.sg-gallery.is-managing-images .blocks-gallery-item[data-gallery-image-item].is-selected::after {
	background: rgba(101, 160, 179, 0.18);
	border-color: rgba(79, 134, 152, 0.9);
}

.sg-gallery-image-select input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.sg-gallery-image-select__box {
	width: 14px;
	height: 14px;
	border: 1.5px solid #5f6670;
	border-radius: 4px;
	background: #fff;
	box-shadow: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.sg-gallery-image-select input:checked + .sg-gallery-image-select__box {
	border-color: #374151;
	background-color: #f3f4f6;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%231f2937' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3.5 8.5l2.5 2.5 6-6'/%3E%3C/svg%3E");
	background-position: center;
	background-repeat: no-repeat;
	background-size: 10px 10px;
}

.sg-gallery-image-select input:focus-visible + .sg-gallery-image-select__box {
	outline: 2px solid #000000;
	outline-offset: 2px;
}

.sg-gallery-image-delete {
	right: 12px;
	bottom: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: rgba(180, 35, 24, 0.94);
	color: #fff;
	box-shadow: 0 10px 20px rgba(16, 24, 40, 0.22);
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.sg-gallery-image-delete:hover,
.sg-gallery-image-delete:focus {
	background: #912018;
	transform: translateY(-1px);
}

.sg-gallery-image-delete svg {
	width: 18px;
	height: 18px;
	display: block;
}

.sg-gallery-dialog {
	position: fixed;
	inset: 0;
	background: rgba(29, 35, 39, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	z-index: 100000;
}

.sg-gallery-dialog__panel {
	width: min(100%, 760px);
	max-height: min(90vh, 760px);
	overflow: auto;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
	padding: 28px;
}

.sg-gallery-dialog__panel.is-compact {
	width: min(100%, 460px);
}

.sg-gallery-dialog__panel.is-processing {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 260px;
}

.sg-gallery-dialog__title {
	margin: 0 0 18px;
	font-size: 1.5rem;
	line-height: 1.2;
}

.sg-gallery-dialog__section + .sg-gallery-dialog__section {
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid #ddd;
}

.sg-gallery-dialog__label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
}

.sg-gallery-dialog__options {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	max-height: 280px;
	overflow: auto;
	padding-right: 4px;
}

.sg-gallery-dialog__options--select {
	grid-template-columns: 1fr;
	max-height: none;
	overflow: visible;
	padding-right: 0;
}

.sg-gallery-dialog__option {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border-radius: 12px;
	border: 1px solid #dcdcde;
	background: #fff;
	cursor: pointer;
}

.sg-gallery-dialog__option:hover {
	background: #f6f7f7;
	border-color: #8c8f94;
}

.sg-gallery-dialog__empty {
	margin: 0;
	color: #646970;
}

.sg-gallery-dialog__hint {
	margin: 12px 0 0;
	color: #646970;
	font-size: 1.3rem !important;
	line-height: 1.6;
}

.sg-gallery-dialog__delete-copy {
	margin: 0;
	font-size: 1.85rem !important;
	font-weight: 600;
	line-height: 1.45;
	text-align: center;
	color: #1d2327;
}

.sg-gallery-dialog__meta {
	margin: 0;
	color: #50575e;
}

.sg-gallery-upload {
	display: grid;
	justify-items: center;
	gap: 10px;
	padding: 28px;
	border: 2px dashed #c8c3bb;
	border-radius: 16px;
	background: #faf7f2;
	text-align: center;
	transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
	cursor: pointer;
	outline: none;
}

.sg-gallery-upload:hover,
.sg-gallery-upload:focus,
.sg-gallery-upload.is-dragover {
	border-color: #8a5d2f;
	background: #f5eee4;
	transform: translateY(-1px);
}

.sg-gallery-upload__title {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 600;
	color: #1d2327;
}

.sg-gallery-upload__text {
	margin: 0;
	max-width: 32rem;
	color: #646970;
	font-size: 1.1875rem;
}

.sg-gallery-dialog__grid {
	display: grid;
	grid-template-columns: 2fr 1fr auto;
	gap: 12px;
	align-items: end;
}

.sg-gallery-dialog__grid--manage {
	grid-template-columns: 1.6fr auto auto;
}

.sg-gallery-dialog__input,
.sg-gallery-dialog__select {
	width: 100%;
	min-height: 42px;
	padding: 0 12px;
	border-radius: 10px;
	border: 1px solid #8c8f94;
	background: #fff;
}

.sg-gallery-dialog__footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid #ddd;
	flex-wrap: wrap;
}

.sg-gallery-dialog__panel.is-processing .sg-gallery-dialog__footer {
	justify-content: center;
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
	width: 100%;
}

.sg-gallery-dialog__panel.is-processing .sg-gallery-dialog__actions {
	display: none;
}

.sg-gallery-dialog__actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.sg-gallery-dialog__status {
	margin: 0;
	color: #50575e;
}

.sg-gallery-dialog__progress {
	width: min(100%, 360px);
	height: 12px;
	border-radius: 999px;
	background: #e5e7eb;
	overflow: hidden;
	box-shadow: inset 0 1px 2px rgba(16, 24, 40, 0.12);
}

.sg-gallery-dialog__progress-bar {
	width: 0%;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--sg-gallery-accent-dark) 0%, var(--sg-gallery-accent) 55%, var(--sg-gallery-accent-light) 100%);
	transition: width 0.18s ease;
}

.sg-gallery-dialog__status[data-state="loading"] {
	width: 100%;
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	color: #1d2327;
}

.sg-gallery-dialog__status[data-state="error"] {
	color: #b32d2e;
}

.sg-gallery-body-lock {
	overflow: hidden;
}

.sg-gallery-slideshow {
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: flex;
	align-items: stretch;
	justify-content: center;
	padding: 28px;
	color: #fff;
}

.sg-gallery-slideshow__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 12, 14, 0.92);
	backdrop-filter: blur(6px);
}

.sg-gallery-slideshow__shell {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	width: min(100%, 1320px);
	height: 100%;
	gap: 16px;
	outline: none;
}

.sg-gallery-slideshow__topbar {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 16px;
	min-height: 52px;
}

.sg-gallery-slideshow__counter,
.sg-gallery-slideshow__album {
	font-size: 1.0625rem;
	line-height: 1.3;
	color: rgba(255, 255, 255, 0.92);
}

.sg-gallery-slideshow__counter {
	font-weight: 600;
	white-space: nowrap;
}

.sg-gallery-slideshow__album {
	text-align: center;
	font-weight: 500;
	letter-spacing: 0.02em;
}

.sg-gallery-slideshow__close,
.sg-gallery-slideshow__nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.sg-gallery-slideshow__close:hover,
.sg-gallery-slideshow__close:focus,
.sg-gallery-slideshow__nav:hover,
.sg-gallery-slideshow__nav:focus {
	background: rgba(255, 255, 255, 0.16);
	transform: translateY(-1px);
}

.sg-gallery-slideshow__close {
	width: 52px;
	height: 52px;
	border-radius: 999px;
	font-size: 2rem;
	line-height: 1;
}

.sg-gallery-slideshow__viewport {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 20px;
	min-height: 0;
	flex: 1 1 auto;
}

.sg-gallery-slideshow__stage {
	position: relative;
	min-width: 0;
	height: 100%;
	overflow: hidden;
	border-radius: 18px;
	touch-action: pan-y;
}

.sg-gallery-slideshow__track {
	display: flex;
	width: 300%;
	height: 100%;
	transform: translateX(-33.333333%);
	will-change: transform;
	transition: transform 0.32s ease;
}

.sg-gallery-slideshow__track.is-resetting {
	transition: none;
}

.sg-gallery-slideshow__track.is-sliding-prev {
	transform: translateX(0%);
}

.sg-gallery-slideshow__track.is-sliding-next {
	transform: translateX(-66.666667%);
}

.sg-gallery-slideshow__slide {
	flex: 0 0 33.333333%;
	width: 33.333333%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px;
}

.sg-gallery-slideshow__slide img {
	display: block;
	max-width: 100%;
	max-height: min(76vh, 980px);
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
	background: rgba(255, 255, 255, 0.04);
	user-select: none;
	-webkit-user-drag: none;
}

.sg-gallery-slideshow__nav {
	width: 56px;
	height: 56px;
	border-radius: 999px;
	font-size: 3rem;
	line-height: 1;
	padding-bottom: 4px;
}

@media (max-width: 900px) {
	.sg-gallery--guest {
		min-height: auto;
	}

	.sg-gallery__guest-card {
		grid-template-columns: 1fr;
		padding: 28px;
	}

	.sg-gallery__album-grid,
	.sg-gallery .blocks-gallery-grid,
	.sg-gallery .wp-block-gallery,
	.sg-gallery-dialog__options {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sg-gallery-dialog__grid {
		grid-template-columns: 1fr;
	}

	.sg-gallery__header {
		flex-direction: column;
	}

	.sg-gallery__header > :first-child {
		width: 100%;
		text-align: center;
	}

	.sg-gallery__header .sg-gallery__content {
		margin-left: auto;
		margin-right: auto;
	}

	.sg-gallery__controls {
		width: 100%;
		justify-content: flex-end;
	}

	.sg-gallery-slideshow {
		padding: 18px;
	}

	.sg-gallery-slideshow__viewport {
		gap: 12px;
	}

	.sg-gallery-slideshow__nav {
		width: 48px;
		height: 48px;
		font-size: 2.4rem;
	}
}

@media (max-width: 640px) {
	.sg-gallery {
		padding-inline: 16px;
	}

	.sg-gallery__guest-card {
		padding: 22px;
		border-radius: 22px;
	}

	.sg-gallery__login-card {
		padding: 22px;
		border-radius: 18px;
	}

	.sg-gallery__toolbar-meta,
	.sg-gallery__album-switcher {
		width: 100%;
	}

	.sg-gallery__album-switcher {
		max-width: none;
	}

	.sg-gallery__album-grid,
	.sg-gallery .blocks-gallery-grid,
	.sg-gallery .wp-block-gallery,
	.sg-gallery-dialog__options {
		grid-template-columns: 1fr;
	}

	.sg-gallery-dialog {
		padding: 16px;
	}

	.sg-gallery-dialog__panel {
		padding: 20px;
	}

	.sg-gallery-slideshow {
		padding: 12px;
	}

	.sg-gallery-slideshow__shell {
		gap: 12px;
	}

	.sg-gallery-slideshow__topbar {
		grid-template-columns: 1fr auto;
		gap: 10px;
	}

	.sg-gallery-slideshow__album {
		grid-column: 1 / -1;
		order: 3;
		text-align: left;
	}

	.sg-gallery-slideshow__viewport {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.sg-gallery-slideshow__stage {
		order: 1;
		min-height: 56vh;
	}

	.sg-gallery-slideshow__nav {
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
		z-index: 2;
	}

	.sg-gallery-slideshow__nav:hover,
	.sg-gallery-slideshow__nav:focus {
		transform: translateY(calc(-50% - 1px));
	}

	.sg-gallery-slideshow__nav--prev {
		left: 10px;
	}

	.sg-gallery-slideshow__nav--next {
		right: 10px;
	}

	.sg-gallery-slideshow__slide {
		padding-inline: 0;
	}

	.sg-gallery-slideshow__slide img {
		max-height: 62vh;
	}

}
