	.photo-size-popup {
		padding: 0;
		line-height: 1.2;
		text-align: center;
		display: grid;
		/* grid-template-columns: clamp(50px, 10vw, 200px) 1fr clamp(50px, 10vw, 200px); */
		position: relative;
	}

	.photo-size-popup__control {
		display: flex;
		justify-content: center;
		align-items: center;
		cursor: pointer;
		outline: none;
		transition: opacity .3s ease;
	}

	.photo-size-popup__control:hover {
		opacity: .8;
	}

	.photo-size-popup__content {
		display: grid;
		justify-items: center;
		align-content: start;
		gap: clamp(20px, 5vw, 30px);
		padding: clamp(20px, 5vw, 60px);
	}

	.photo-size-popup__slider {
		width: clamp(200px, 35vw, 500px);
	}

	.photo-size-popup__close {
		position: absolute;
		right: 10px;
		top: 10px;
		cursor: pointer;
		z-index: 1;
		transition: opacity .3s ease;
	}

	.photo-size-popup__close:hover {
		opacity: .6;
	}

	/* portrait */

	.portrait {
		display: grid;
		justify-items: center;
		gap: 10px;
	}

	.portrait__title {
		color: #ffce7a;
		font-size: clamp(28px, 5vw, 36px);
		font-weight: 700;
	}

	.portrait__text {
		font-size: clamp(20px, 5vw, 28px);
		font-weight: 600;
	}

	.portrait__img {
		width: 350px;
		max-width: 100%;
		aspect-ratio: 1;
		object-fit: cover;
		border-radius: 14px;
		user-select: none;
	}

	/* callback form */
	callback-form-flex{
		display: flex;
		align-items: stretch;
		gap: 10px;
	}
	.callback-form {
		width: 100%;
		max-width: 500px;
		transition: opacity .3s ease;
	}

	.callback-form.loading {
		opacity: .6;
		pointer-events: none;
	}

	.callback-form__input {
		min-height: 48px;
		min-width: 0;
		flex-grow: 1;
		padding: 14px 20px;
		border-radius: 4px;
	}

	.callback-form__input.error {
		border-color: #e42e30;
	}

	.callback-form__input::placeholder {
		color: #c2c2c2;
	}

	.callback-form__button {
		min-height: 48px;
		flex-shrink: 0;
		border: none;
		background-color: #ffce7a;
		color: #fff;
		padding: 14px 20px;
		border-radius: 4px;
		cursor: pointer;
		transition: opacity .3s ease;
	}

	.callback-form__button:hover {
		opacity: .8;
	}

	@media (max-width: 576px) {
		.callback-form {
			flex-direction: column;
		}
	}
	.photo-size-popup__title {
		color: #ffce7a;
		font-size: clamp(24px, 5vw, 32px);
		font-weight: 700;
		margin-bottom: 10px;
	}

	.photo-size-popup__messengers {
		display: none;
		flex-direction: column;
		width: 100%;
		max-width: 340px;
		gap: 8px;
	}

	.gallery-popup__note {
		font-weight: 400;
		font-size: 14px;
		line-height: 1.2;
		color: #333;
		text-align: left;
		width: 100%;
	}

	.gallery-popup__buttons {
		display: flex;
		flex-direction: column;
		gap: 4px;
		width: 100%;
	}

	.gallery-popup__button {
		height: 50px;
		display: flex;
		align-items: center;
		justify-content: center;
		border-radius: 100px;
		gap: 5px;
		color: #fff;
		text-decoration: none;
		font-size: 14px;
		font-weight: 600;
	}

	.gallery-popup__button--tg {
		background: #259ED0;
	}

	.gallery-popup__button--vk {
		background: #4C6C91;
	}

	.gallery-popup__button--max {
		background: #20186D;
	}

	.gallery-popup__button img {
		width: 24px;
		height: 24px;
		flex-shrink: 0;
	}

	.gallery-popup__button:active,
	.gallery-popup__button:hover,
	.gallery-popup__button:focus,
	.gallery-popup__button:visited {
		color: #fff;
	}

	@media (max-width: 768px) {
		.fancybox__slide:has(#photo-size) {
			padding: 8px;
		}

		.fancybox__slide:has(#photo-size) .fancybox__content {
			width: calc(100vw - 16px) !important;
			max-width: calc(100vw - 16px) !important;
		}

		.photo-size-popup {
			width: 100%;
			max-width: 100%;
			padding: 20px 18px 24px;
			box-sizing: border-box;
			background: #fff;
			border-radius: 14px;
		}

		.photo-size-popup__content {
			padding: 0 4px;
			width: 100%;
			box-sizing: border-box;
			gap: 16px;
		}

		.photo-size-popup__messengers {
			max-width: 100%;
			padding: 0 2px;
		}

		.photo-size-popup__portrait {
			padding: 0 4px;
			width: 100%;
		}
	}

	@media (max-width: 430px) {
		.photo-size-popup__content img {
			margin-top: 18px;
		}
		.photo-size-popup__content .custom-policy {
			margin-top: 18px;
		}
		.photo-size-popup__content .custom-policy .wpcf7-list-item-label {
			font-size: 10px;
		}
	}