/* =========================
   THREE COLUMNS GRID
========================= */
.three-columns__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
}

/* =========================
   COLUMN
========================= */
.three-columns__col {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* =========================
   MEDIA (IMAGE / VIDEO)
========================= */
.three-columns__media {
    width: 100%;
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 4px; /* optional polish */
}

/* Make images fill container */
.three-columns__media img {
    width: 100%;
    height: auto;
    display: block;
}

/* Optional: make all media same height (clean design)
   Uncomment if you want equal visual blocks */
/*
.three-columns__media {
    height: 300px;
}

.three-columns__media img {
    height: 100%;
    object-fit: cover;
}
*/

/* Videos / iframes responsive */
.three-columns__media iframe {
    width: 100%;
    height: 100%;
    min-height: 250px;
}

/* =========================
   TEXT
========================= */
.three-columns__text {
    margin-top: 0.5rem;
}

/* =========================
   BUTTON
========================= */
.three-columns__button {
    margin-top: 1rem;
}

/* Button styling */
.button {
    display: inline-block;
    background-color: #0066ff;
    color: #ffffff;
    text-align: center;
    padding: 0.75rem 1.25rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #004bb5;
}

/* =========================
   RESPONSIVE
========================= */

/* Tablet */
@media (max-width: 1024px) {
    .three-columns__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 640px) {
    .three-columns__grid {
        grid-template-columns: 1fr;
    }
}