body {
    background-color: pink;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    text-align: center;
}

.image-link {
    position: relative;
    display: block;
    width: min(80vw, 400px);
    overflow: hidden;
}

.image-link img {
    display: block;
    width: 100%;
    height: auto;
}

.image-caption {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.image-link:hover .image-caption,
.image-link:focus-visible .image-caption {
    opacity: 1;
}

.bottom-text {
    font-family: "Times New Roman", serif;
    font-size: clamp(60px, 11vw, 170px);
    font-weight: bold;
    font-style: italic;

    white-space: nowrap;
    text-align: center;
    line-height: 0.8;
    letter-spacing: -8px;

    transform: scaleX(1.15);
}


button:hover {
    background-color: #005999;
}

.video-link-container {
    position: relative;
    display: block;
    width: 90%;            
    max-width: 1400px;    
    height: 75vh;          
    margin: 30px auto;    
    border-radius: 20px;
   
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    text-decoration: none;  
    -webkit-tap-highlight-color: transparent; 
}

/* 2. Само видео на фоне */
.my-media-video {
    width: 100%;
    height: 100%;
    object-fit: cover;     
    display: block;
}


.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); 
    
   
    display: flex;
    justify-content: center;
    align-items: center;
    
    opacity: 0;             
    transition: opacity 0.3s ease-index;
}


.image-text {
    color: #ffffff !important; 
    text-decoration: none !important; 
    font-size: 80px;         
    font-weight: 900;        
    font-family: 'Arial Black', Gadget, sans-serif; 
    text-transform: uppercase; 
    text-align: center;
    padding: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5); 
}


.video-link-container:hover .video-overlay {
    opacity: 1;
}