.tymczasowy { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    word-break: keep-all; 
    overflow-wrap: break-word;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    min-height: 30vh;
    text-align: center;
    padding: 20px;
    gap: 40px;
}

.container {
    max-width: 70%;
    width: 100%;
}

.boks {
    background: rgba(100,100,100, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 20%;
    width: 100%;
    min-height: 25vh;
}

.kurs {
    background: rgba(100,100,100, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 60%;
    width: 100%;
    min-height: 15vh;
    align-items: left;
    text-align: left;
    padding: 20px;
}

.uczelnia {
    margin: 0px 10px 0px 0px;
    padding: 0px;
    font-size: 0.7em;
    text-align: right;
}

.uczelnia::before {
    font-size: 0.8em;
    content: "Where? " 
}

.okres {
    margin: 0px 10px 0px 0px;
    padding: 0px;
    font-size: 0.7em;
    text-align: right;
}

.okres::before {
    font-size: 0.8em;
    content: "When? " 
}


.language {
    margin: 0px 10px 0px 0px;
    padding: 0px;
    font-size: 0.7em;
    text-align: right;
}

.language::before {
    font-size: 0.8em;
    content: "Lecture/Seminar language: " 
}

.bigg {
    font-size: 1.8em;
    font-weight: 100;
    text-align: left;
}


h1 {
    font-size: 1.5em;
    margin-bottom: 0px;
    text-align: right;
    font-weight: 400;
    padding-top: 30px;
    }

h2 { 
    font-size: 1.5em; 
    margin: 0em 0em 1em 0em;
    color: rgba(240,255,255,0.7);
}

h4 {
    font-size: 1.2em;
    font-weight: 300;
    margin: 0;
    padding: 1rem 1.5rem;
    background: linear-gradient(90deg, #006272, #0096a7af);
    color: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

h5 { 
line-height: 1.5; 
font-size: 0.9em;
color: rgba(255,255,255,1);
font-weight: 300;
padding: 8px;
margin: 0px;
}

p { 
line-height: 1.5; 
font-size: 0.9em;
color: rgba(255,255,255,1);
font-weight: 100;
padding: 8px;
margin: 0px;
}

.inicjal {
    margin: 10px 0px 0px 0px;
    overflow: visible; /* ważne! */

}

.inicjal::first-letter {
    float: left;
    font-size: 3em;
    line-height: 1;
    padding-right: 0.08em;
    padding-top: 0.18em;
    font-weight: 200;
    color: rgba(255,255,255,0.8);
}

footer { margin-top: 2em; font-size: 0.8em; color: #aaa; }


.photo { 
    margin: 0; 
    padding: 0; 
    display: block;
    position: relative;
    min-height: 30vh;
    text-align: center;
    width: 80%;
}

.photo img {
    display: block;
    animation: fade 3s forwards;
    width: 100%;
}



.caption {
    position: absolute;
    bottom: 0px;
    left: 0px;
    text-align: left;
    padding: 16px 32px 32px 32px;
    background: rgba(0,0,0,0.4);

}

.caption h1 {
    font-weight: 100;
    font-size: 2.5em;
    margin: 0px;
    padding: 0px;
}

img {
animation: fade 5s forwards;
width: 80%;
opacity: 0.9;
}

@keyframes fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 768px) { /* Dostosuj breakpoint według potrzeb */
  img {
      width: 100% !important;
  }
  h1 {
    font-size: 1.5em !important;
    text-align: left;
    font-weight: 400;
    margin: 0px;
    padding: 0px;

  }
  h2 {
    font-size: 1.1em !important;
    text-decoration: none;
    font-weight: 400;
    word-break: keep-all; 
    overflow-wrap: break-word;
  }

  .tymczasowy {
    flex-direction: column;
  }

  .container {
    max-width: 100%;
  }
  
  .boks {
    max-width: 95%;
    width: 100%;
  }

    .kurs {
        max-width: 95%;
        width: 100%;
    }
  
p { 
    line-height: 1.5; 
    font-size: 1.1em;
    color: rgba(255,255,255,1);
    font-weight: 200;
    padding: 8px;
    margin-top: 0px;
    }

.inicjal::first-letter {
    float: left;
    font-size: 3em;
    padding-right: 0.08em;
    padding-top: 0em;
    font-weight: 200;
    color: rgba(255,255,255,0.8);
}

    .photo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    position: static; /* wyłącza position: relative */
    padding: 0px;
    }

    .photo img {
    width: 100%;
    height: auto;
    }

    .caption {
    position: static; /* wyłącza absolute */
    background: none;
    padding: 0px;
    margin: 0px;
    text-align: left;
    font-size: 1.2em;
    }

    .separator {
        display: none;
    }

    .role {
        display: block;
        margin: 0px;
        padding: 0px;
    }
} 
