/* Two-column split layout — used by index.html and education.html */

#content {
  display: flex;
  flex-direction: row;
  margin-bottom: 20px;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
  align-items: flex-start;
  max-width: 1400px;
  gap: 60px;
  padding: 20px;
  height: calc(100vh - var(--header-height, 130px) - 80px);
}

.minihead {
  font-variant: small-caps;
  font-size: 36pt;
}

/* Animated photo slideshow */
#left-col-image {
  position: relative;
  width: 500px;
  height: 500px;
  flex-shrink: 0;
  align-self: flex-start;
}

#left-col-image div {
  position: absolute;
  display: block;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  animation-name: fadeImages;
  animation-duration: 20s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  background-size: contain;
  background-position: center;
  opacity: 0;
}

#left-col-image div:nth-of-type(1) {
  background-image: url('images/me-winter.jpg');
  animation-delay: 0s;
}

#left-col-image div:nth-of-type(2) {
  background-image: url('images/me-weymss.jpg');
  animation-delay: -15s;
}

#left-col-image div:nth-of-type(3) {
  background-image: url('images/me-ediza.jpg');
  animation-delay: -10s;
}

#left-col-image div:nth-of-type(4) {
  background-image: url('images/me-scotland.jpg');
  animation-delay: -5s;
}

@keyframes fadeImages {
  0%   { opacity: 1 }
  20%  { opacity: 1 }
  25%  { opacity: 0 }
  95%  { opacity: 0 }
  100% { opacity: 1 }
}

/* Education page — single static tilted image instead of slideshow */
#left-col-image.education-image {
  width: 450px;
  height: auto;
  flex-shrink: 0;
}

#left-col-image img {
  position: static;
  width: 100%;
  height: auto;
  display: block;
  transform: rotate(-5deg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}


#right-col {
  flex: 1;
  max-width: 600px;
  margin: 0;
  overflow-y: auto;
  height: 100%;
  padding-top: 28px;
  padding-right: 15px;
  padding-left: 15px;
}

#ucla-logo {
  display: block;
  width: 90px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #a8a8a8;
}

#quotes {
  font-family: cursive;
  color: #a8a8a8;
  font-size: 24pt;
}

@media (max-width: 767px) {
  #content {
    flex-direction: column;
    height: auto;
    padding: 15px;
    gap: 20px;
  }

  /* Hide images on small screens — content first */
  #left-col-image {
    display: none;
  }

  #right-col {
    height: auto;
    overflow-y: visible;
    max-width: 100%;
    padding-top: 10px;
  }
}
