/*!
Theme Name: Sofia
Author: Vitaliy Melnichyk
Author URI: https://freelancehunt.com/freelancer/Framework.html
Description: Custom theme for magician homepage.
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: sofia
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

Sofia is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/* Alignments
--------------------------------------------- */
.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}
/* Плавне відкриття/закриття Magnific Popup */
.mfp-fade.mfp-bg {
  opacity: 0;
  transition: all 0.3s ease-out;
}

.mfp-fade.mfp-bg.mfp-ready {
  opacity: 0.8; /* фон */
}

.mfp-fade.mfp-bg.mfp-removing {
  opacity: 0;
}

.mfp-fade.mfp-wrap {
  opacity: 0;
  transition: all 0.3s ease-out;
}

.mfp-fade.mfp-wrap.mfp-ready {
  opacity: 1;
}

.mfp-fade.mfp-wrap.mfp-removing {
  opacity: 0;
}

/* Основний контейнер відео */
/*
.mfp-video-fullscreen .mfp-content {
  width: 95% !important;
  height: 95% !important;
  max-width: 400px; 
  background-color: #000!important;
}


.video-container {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.mfp-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  background: rgba(0,0,0,0.5);
  color: white;
  border-radius: 50%;
  border: none;
  font-size: 20px;
  line-height: 30px;
  text-align: center;
  z-index: 9999;
  cursor: pointer;
}


.mfp-close-area {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.mfp-iframe-scaler iframe{
	box-shadow: none!important;
}

@media (max-width: 767px) {
  .mfp-video-fullscreen .mfp-content {
    width: 95% !important;
    height: 80vh !important;
    max-width: none;
  }
  
  .mfp-close {
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    font-size: 24px;
    line-height: 35px;
  }
  iframe,
  video{
  	width: 100%;
  	height: 100%;
  	object-fit: cover;
  }
}*/

.mfp-iframe-holder .mfp-content{
	height: 100%;
}