/*
Theme Name: Redrik
Description: A child theme of Twenty Twenty-Five with video portfolio functionality
Author: jsn
Author URI: https://jsn.solid.hu
Theme URI: https://ferenczzsofi.hu
Tags: full-site-editing
Text Domain: redrik
Requires at least: 5.8
Requires PHP: 7.4
Tested up to: 6.0
Version: 0.0.1

License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Template: twentytwentyfive
*/

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

.video {
    cursor: pointer;
}

.video img {
    aspect-ratio: 16/9;
    background-color: #000;
    object-fit: cover;
    width: 100%;
    /*aspect-ratio: 16/9;*/
    /*background-color: #ccc;*/
    /*object-fit: scale-down;*/
    /*width: 100%;*/
}

.video h3 {
    font-size: .9em;
    font-weight: 700;
    margin: .25em 0 0;
    text-transform: uppercase;
}

.video p {
    font-size: .8em;
    line-height: 1.2;
    margin: 0;
}

.video-modal {
    align-items: center;
    background: #000c;
    box-sizing: border-box;
    height: 100%;
    inset: 0;
    justify-content: center;
    position: fixed;
    width: 100%;
    z-index: 99999;
}
.video-modal[open] {
    display: flex;
}

body.modal-open {
    overflow: hidden;
}

.modal-content,
.modal-content iframe {
    width: 100%;
    height: 100%;
}

.modal-close {
    position: absolute;
    top: .25rem;
    right: .25rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    font-size: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
}
