/* ========== Base Styles ========== */
body {
    background: linear-gradient(135deg, #667eea 0%, #232946 60%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: #1a2236;
}

h1, h2, h3 {
    font-family: inherit;
    color: #232946;
    margin-top: 0;
}
h1 {
    font-weight: bold;
    background-color: #f4f6fb;
    border-radius: 8px;
    border: solid #667eea 2px;
    padding: 10px;
    box-shadow: 0 1px 20px rgba(102, 126, 234, 0.15);
}
h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
}
p, ul, li {
    color: #3a506b;
    line-height: 1.7;
}
ul {
    padding-left: 0;
    list-style-type: none;
}
li {
    margin-bottom: 8px;
}

/* ========== Layout Wrappers ========== */
.wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px 0;
}
.header-and-body {
    max-width: 1400px;
    margin: 0 auto;
}

/* ========== Floating Box ========== */
.floating-box {
    width: 400px;
    max-width: 100%;
    padding: 40px;
    border-radius: 25px;
    border: 1px solid rgba(102, 126, 234, 0.15);
    box-shadow: 0 15px 40px rgba(102,126,234,0.10), 0 6px 20px rgba(35,41,70,0.08);
    position: relative;
    z-index: 10;
    align-items: center;
    margin: 10px auto;
    transition: opacity 0.6s, transform 0.6s, box-shadow 0.3s;
    will-change: opacity, transform;
    opacity: 0;
    transform: translateY(20px);
    background: #fff;
}
.floating-box::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, #667eea, #7f5af0, #232946, #3a506b);
    border-radius: 27px;
    z-index: -1;
    opacity: 0.2;
    transition: opacity 0.3s;
}
.floating-box:hover::before { opacity: 0.4; }
.floating-box.fade-in { opacity: 1; transform: translateY(0); }
.floating-box:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 25px 60px rgba(102,126,234,0.18), 0 10px 30px rgba(35,41,70,0.12);
}

/* ========== Site Header & Profile ========== */
#home {
    position: relative;
}

.site-header {
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 300px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(102,126,234,0.18), 0 4px 15px rgba(35,41,70,0.10);
    border-radius: 0 0 30px 30px;
}
.site-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(102,126,234,0.18) 0%, rgba(35,41,70,0.18) 100%);
    z-index: 1;
}
.site-header img {
    width: 100%; height: 100%; object-fit: cover; object-position: center; position: relative; z-index: 2;
}
.profile-pic {
    position: absolute; 
    top: calc(25% + 20px); 
    left: 2.5%; 
    z-index: 10;
    transform: translateY(-50%);
    max-width: 200px;
}
.profile-pic img {
    width: 200px; height: 200px; border-radius: 50%; object-fit: cover;
    border: 4px solid rgba(244,246,251,0.9);
    box-shadow: 0 15px 40px rgba(102,126,234,0.18), 0 6px 20px rgba(35,41,70,0.12), 0 3px 10px rgba(102,126,234,0.10), inset 0 1px 0 rgba(244,246,251,0.9);
    position: relative; z-index: 3;
    transition: transform 0.3s, box-shadow 0.3s;
}
.profile-pic img:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(102,126,234,0.22), 0 8px 25px rgba(35,41,70,0.18), 0 4px 12px rgba(102,126,234,0.12), inset 0 1px 0 rgba(244,246,251,1);
}

/* ========== Projects Section ========== */
.projects-section .container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 200px;
}
.projects-section .floating-box {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 400px;
    max-width: 90%;
    margin: 10px auto;
}
.project-logos {
    position: absolute;
    left: 20px;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
    width: 200px;
}
.project-image {
    width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(102,126,234,0.15);
    box-shadow: 0 12px 30px rgba(102,126,234,0.10), 0 5px 15px rgba(35,41,70,0.06);
    transition: opacity 0.5s, transform 0.5s, box-shadow 0.3s;
    will-change: opacity, transform;
    opacity: 0;
    transform: scale(0.9) translateY(15px);
    position: relative;
}
.project-image.pop-in {
    opacity: 1;
    transform: scale(1) translateY(0);
}
.project-image:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 18px 40px rgba(255, 112, 67, 0.15), 0 8px 25px rgba(255, 183, 77, 0.10);
}
.project-image img {
    width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: contain;
    border-radius: 8px;
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
    .projects-section .container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .project-logos {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .project-image {
        width: 150px;
    }
    .project-image img {
        max-height: 120px;
    }
    .profile-pic {
        top: calc(50% + 20px);
        left: 5%;
        transform: translateY(-50%);
    }
}

@media (max-width: 480px) {
    .portfolio-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .profile-pic {
        top: calc(50% + 20px);
        left: 2%;
        transform: translateY(-50%);
    }
    
    .site-header {
        height: 200px;
    }
    
    #home {
        padding-top: 90px;
    }
}

@media (max-width: 375px) {
    .profile-pic {
        top: calc(50% + 20px);
        left: 1%;
        transform: translateY(-50%);
    }
    
    .site-header {
        height: 180px;
    }
    
    #home {
        padding-top: 100px;
    }
}

/* ========== Smooth Scrolling ========== */
html {
    scroll-behavior: smooth;
}

/* ========== Section Spacing ========== */
section {
    padding: 20px 0;
}

#home {
    padding-top: 70px;
}

/* ========== Floating box animations ========== */
/* Note: Floating box styles are defined earlier in the file */

/* ========== Project image animations ========== */
.project-image {
    opacity: 0;
    transform: scale(0.9) translateY(15px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out, box-shadow 0.3s ease;
    will-change: opacity, transform;
}

.project-image.pop-in {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.project-image:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 18px 40px rgba(0, 0, 0, 0.15),
        0 8px 25px rgba(0, 0, 0, 0.1);
}

/* ========== Modern Portfolio Gallery ========== */
.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 10px;
}

.portfolio-item {
    position: relative;
    background: none;
    border-radius: 12px;
    box-shadow: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    min-height: 0;
    min-width: 0;
    transition: transform 0.3s cubic-bezier(.4,2,.6,1), box-shadow 0.3s;
}

.portfolio-item img,
.portfolio-item video,
.portfolio-item iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: none;
    margin: 0;
    display: block;
    transition: transform 0.3s cubic-bezier(.4,2,.6,1);
}

.portfolio-item:hover img,
.portfolio-item:hover video,
.portfolio-item:hover iframe {
    transform: scale(1.04);
}

.portfolio-item h4 {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    margin: 0;
    padding: 16px 12px 12px 16px;
    background: linear-gradient(0deg, rgba(35,41,70,0.85) 0%, rgba(35,41,70,0.0) 100%);
    color: #fff;
    font-size: 1.1em;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    border-radius: 0 0 12px 12px;
}

.portfolio-item:hover h4 {
    opacity: 1;
    pointer-events: auto;
}

.portfolio-item p {
    display: none;
}

/* ========== Portfolio Video Styles ========== */
.video-container {
    /* Removed flex properties to restore grid formatting */
}

.video-container video {
    width: 100%;
    max-width: 320px;
    height: auto;
    max-height: 200px;
    border-radius: 6px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(102,126,234,0.10);
    object-fit: cover;
}

/* ========== Navigation Styles ========== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(244,246,251, 0.97);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(102, 126, 234, 0.15);
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(102,126,234,0.08);
    transition: background-color 0.3s;
    will-change: background-color;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}
.nav-logo h3 {
    color: #232946;
    margin: 0;
    font-weight: 600;
}
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}
.nav-link {
    color: #3a506b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}
.nav-link:hover { color: #667eea; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #667eea, #7f5af0);
    transition: width 0.3s;
}
.nav-link:hover::after { width: 100%; }

/* ========== CTA Buttons ========== */
.cta-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}
.cta-button {
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid transparent;
    display: inline-block;
}
.cta-button.primary {
    background: linear-gradient(45deg, #667eea, #7f5af0);
    color: white;
    box-shadow: 0 4px 15px rgba(102,126,234,0.18);
}
.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102,126,234,0.22);
}
.cta-button.secondary {
    background: transparent;
    color: #667eea;
    border-color: #667eea;
}
.cta-button.secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}
.cta-button.solid {
    background: linear-gradient(45deg, #667eea, #7f5af0);
    color: white;
    box-shadow: 0 4px 15px rgba(102,126,234,0.18);
    border: none;
}
.cta-button.solid:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102,126,234,0.22);
}

/* ========== Footer ========== */
.footer {
    background: linear-gradient(135deg, #232946 0%, #3a506b 100%);
    color: #f4f6fb;
    margin-top: 60px;
    padding: 40px 0 20px;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}
.footer-section h4 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.2em;
}
.footer-section ul {
    list-style: none;
    padding: 0;
}
.footer-section ul li {
    margin-bottom: 8px;
}
.footer-section ul li a {
    color: #a0b8f8;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-section ul li a:hover {
    color: #7f5af0;
}
.footer-section p {
    color: #eaf0fa;
    margin-bottom: 8px;
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 30px;
    border-top: 1px solid rgba(102,126,234,0.1);
    color: #a0b8f8;
}

#contact .floating-box {
    margin-top: 60px;
}

.portfolio-gallery ~ .floating-box h2,
.portfolio-gallery h2,
#portfolio h2 {
    color: #fff !important;
}

/* ========== Portfolio Modal/Lightbox ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(35, 41, 70, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal: Make content fit video naturally */
.modal-content {
  width: 90vw;
  max-width: 600px;
  max-height: 80vh;
  padding: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.modal-content video,
.modal-content img {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 80vh;
  display: block;
  object-fit: contain;
  background: #000;
  border-radius: 12px;
}

@media (max-width: 600px) {
  .modal-content {
    width: 98vw;
    max-width: 98vw;
    max-height: 70vh;
    border-radius: 8px;
  }
  .modal-content video,
  .modal-content img {
    max-width: 98vw;
    max-height: 70vh;
    border-radius: 8px;
  }
}

.modal-content img,
.modal-content video {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    display: block;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #232946;
    transition: background 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 1);
}

/* Blur effect for body when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Make portfolio items clickable */
.portfolio-item {
    cursor: pointer;
}

/* White background for portfolio header floating box */
.portfolio-gallery ~ .floating-box,
.portfolio-gallery + .floating-box,
.content-section .floating-box {
    background: rgba(255, 255, 255, 0.95) !important;
}

.portfolio-gallery .full-width-video {
  grid-column: 1 / -1;
  width: 100vw;
  height: auto;
  max-width: 100vw;
  margin-left: -50vw;
  left: 50%;
  right: 50%;
  position: relative;
}

.portfolio-gallery .full-width-video video {
  width: 100vw;
  max-width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  position: relative;
  display: block;
  border-radius: 12px;
}

.portfolio-item.full-width-video {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Force full-width video to maintain aspect ratio and proper height */
.portfolio-item.full-width-video {
  aspect-ratio: 16/9 !important;
  min-height: unset !important;
  height: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: none !important;
}

.portfolio-item.full-width-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* Force full-width video to maintain proper height and fill container */
.portfolio-item.full-width-video video {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 auto !important;
  position: static !important;
  background: #000 !important;
}

.portfolio-item.full-width-video h4 {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 1em !important;
  color: #fff !important;
  background: rgba(0,0,0,0.6) !important;
  opacity: 0 !important;
  transition: opacity 0.3s !important;
  pointer-events: none !important;
  z-index: 2 !important;
  text-align: center !important;
  border-radius: 0 0 12px 12px !important;
}

.portfolio-item.full-width-video:hover h4,
.portfolio-item.full-width-video:focus-within h4 {
  opacity: 1 !important;
  pointer-events: auto !important;
}

@media (max-width: 600px) {
  .full-width-video-container h4 {
    font-size: 1em;
    padding: 0.5em;
  }
}

@media (max-width: 768px) {
  .portfolio-item,
  .portfolio-item.video-container {
    display: block;
    width: 100%;
    min-height: unset;
    aspect-ratio: unset;
    margin: 0 0 16px 0;
    padding: 0;
    box-shadow: none;
  }
  .portfolio-item img,
  .portfolio-item video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 40vh;
    margin: 0 auto;
    border-radius: 10px;
    object-fit: contain;
  }
  .floating-box {
    padding: 18px 8px;
    width: 98vw;
    font-size: 1em;
  }
  .portfolio-item h4 {
    font-size: 1em;
    padding: 10px 8px 8px 12px;
    opacity: 1;
    background: linear-gradient(0deg, rgba(35,41,70,0.85) 0%, rgba(35,41,70,0.0) 100%);
    pointer-events: auto;
    position: static;
    border-radius: 0 0 12px 12px;
    margin-top: 8px;
  }
  .navbar {
    font-size: 1em;
    padding: 0 2px;
    overflow-x: auto;
    white-space: nowrap;
  }
  .nav-menu {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 18px;
  }
  .modal-content {
    max-width: 98vw;
    max-height: 80vh;
  }
  .modal-close {
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .portfolio-gallery {
    display: block !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .portfolio-item,
  .portfolio-item.video-container {
    display: block !important;
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    background: none !important;
  }
  .portfolio-item img,
  .portfolio-item video,
  .video-container video {
    display: block !important;
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: 28vh !important;
    margin: 0 auto !important;
    border-radius: 8px !important;
    object-fit: contain !important;
    background: #000 !important;
  }
  .floating-box {
    padding: 10px 2px;
    font-size: 0.98em;
    width: 99vw;
  }
  .portfolio-item h4 {
    font-size: 0.98em;
    padding: 8px 4px 6px 8px;
    margin-top: 6px;
  }
  .navbar {
    font-size: 0.98em;
    padding: 0 2px;
  }
  .modal-content {
    max-width: 98vw;
    max-height: 70vh;
  }
  .modal-close {
    top: 4px;
    right: 4px;
    width: 28px;
    height: 28px;
    font-size: 16px;
  }
}

/* Fix: Videos should fill their container, not the viewport */
.portfolio-item video,
.video-container video,
.modal-content video {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  display: block !important;
  object-fit: contain !important;
  background: #000 !important;
}

/* Only the full-width video should use 100vw */
/*
.portfolio-gallery .full-width-video video {
  width: 100vw !important;
  max-width: 100vw !important;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  position: relative;
}
*/

/* Fix full-width video centering - remove conflicting override */
/*
.portfolio-gallery .full-width-video,
.portfolio-gallery .full-width-video video {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  left: unset !important;
  right: unset !important;
  position: static !important;
}
*/

/* Remove aspect ratio and min-height from all portfolio items EXCEPT full-width video */
.portfolio-item:not(.full-width-video),
.portfolio-item.video-container:not(.full-width-video) {
  aspect-ratio: unset !important;
  min-height: unset !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto 16px auto !important;
  padding: 0 !important;
  display: block !important;
  box-shadow: none !important;
  background: none !important;
}

/* Make all videos/images fill their containers */
.portfolio-item video,
.video-container video,
.portfolio-item img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 auto !important;
  display: block !important;
  object-fit: contain !important;
  background: #000 !important;
}

/* Keep all portfolio items (except full-width) at a 16:9 aspect ratio */
.portfolio-item:not(.full-width-video),
.portfolio-item.video-container:not(.full-width-video) {
  aspect-ratio: 16/9 !important;
  min-height: 0 !important;
  height: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: none !important;
}

/* Force full-width video to maintain proper aspect ratio and height */
.portfolio-item.full-width-video {
  aspect-ratio: 32/9 !important;
  min-height: unset !important;
  height: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: none !important;
  width: 100vw !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  position: relative !important;
}

/* Make sure images and videos fill the container */
.portfolio-item:not(.full-width-video) img,
.portfolio-item:not(.full-width-video) video,
.portfolio-item.video-container:not(.full-width-video) video {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 auto !important;
  background: #000 !important;
}

#modal-image[style*="display: none"],
#modal-video[style*="display: none"] {
  width: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

/* Remove or override conflicting rule for full-width video h4 overlay */
.portfolio-item.full-width-video h4 {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 1em !important;
  color: #fff !important;
  background: rgba(0,0,0,0.6) !important;
  opacity: 0 !important;
  transition: opacity 0.3s !important;
  pointer-events: none !important;
  z-index: 2 !important;
  text-align: center !important;
  border-radius: 0 0 12px 12px !important;
}

.portfolio-item.full-width-video:hover h4,
.portfolio-item.full-width-video:focus-within h4 {
  opacity: 1 !important;
  pointer-events: auto !important;
}