body {
  background: #55abaa;
  font-family: sans-serif;
  margin: 0;
  overflow: hidden;
  position: relative;
  height: 100vh;
}

.icon {
  position: absolute;
  width: 64px;
  text-align: center;
  font-family: monospace;
  color: white;
  font-size: 12px;
  cursor: pointer;
  user-select: none;
}

.icon img {
  width: 48px;
  height: 48px;
  display: block;
  margin: 0 auto;
}

.window {
  position: absolute;
  width: 300px;
  height: 200px;
  border-radius: 10px;
  background: white;
  border: 2px solid black;
  box-shadow: 5px 5px 0 #333;
  z-index: 1;
}

.title-bar {
  background: #c0c0c0;
  border-radius: 10px 10px 0px 0;
  padding: 5px;
  cursor: move;
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  font-weight: bold;
  user-select: none;
}

.window-buttons {
  display: flex;
  gap: 5px;
}

.window-buttons button {
  margin-left: 4px;
  border: none;
  width: 20px;
  height: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  line-height: 16px;
  padding: 0;
  user-select: none;
}

.window-buttons button:hover {
  background: #bbb;
}

.close-btn {
  background: red;
  color: white;
  border: none;
  cursor: pointer;
  width: 20px;
  height: 20px;
  font-size: 14px;
  line-height: 18px;
}

.window-content {
  padding: 10px;
  height: calc(100% - 35px);
  overflow: auto;
  box-sizing: border-box;
}

.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  height: 50px;
  width: 100%;
  background: #00000080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  gap: 5px;
  box-sizing: border-box;
  z-index: 1000;
}

.taskbar-button {
  background: #fae4e428;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  min-width: auto;
  width: 40px;
  height: 40px;
  border: 2px solid black;
  box-shadow: 5px 5px 0 #333;
}
.taskbar-button img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  }

.taskbar-button:hover {
  background: #e0e0e0;
}

.resize-grip {
  position: absolute;
  width: 16px;
  height: 16px;
  right: 0;
  bottom: 0;
  cursor: se-resize;
  background: transparent;
}


.dossier {
  display: flex;
  gap: 20px;
  font-family: monospace;
  background-color: #ffffff;
  box-sizing: border-box;
}

.dossier .photo img {
  width: 200px;
  height: auto;
  border: 1px solid #4444448c;
  border-radius: 2px 2px 0px 0;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

.dossier .info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: none;
  color: #222;
  font-size: 14px;
  overflow-y: auto;
}


.open-curriculo {
  color: #333;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
}

.open-curriculo:hover {
  color: #0077aa;
  text-decoration: underline;
}

.curriculo-content {
    font-family: monospace;
}

.gallery-thumbnails {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px;
  text-align: center;
  font-family: monospace;
  align-items: start;
}

.gallery-thumbnails .thumb {
  width: 100px;
  height: 100px;
  object-fit: cover;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.2);
  border-radius: 1px;
  transition: transform 0.1s ease;
}

.gallery-thumbnails .thumb:hover {
  transform: scale(1.1);
  cursor: pointer;
}

.artwork-layout {
  display: flex;
  gap: 20px;
  height: 100%;
  box-sizing: border-box;
}

.gallery-column {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.main-image img {
  max-width: 100%;
  max-height: 500px;
  border: 1px solid #ccc;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.thumbs {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.thumbs .thumb-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 2px;
  box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.151);
  transition: transform 0.2s ease;
}

.thumbs .thumb-img:hover {
  transform: scale(1.1);
}

.text-column {
  width: 50%;
  overflow-y: auto;
  font-family: monospace;
  font-size: 14px;
  color: #222;
  padding-right: 10px;
}

.thumb-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}

.thumb-caption {
 margin-top: 5px;
  font-size: 12px;
  word-break: break-word    
}


.video-thumb {
  position: relative;
  cursor: pointer;
}

.video-thumb video {
  width: 60px;
  height: 60px;
  display: block;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 8px;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 10px;
  height: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Adicione isso ao final do seu CSS existente */

/* Media Queries para responsividade */
@media (max-width: 1200px) {
  .window {
    max-width: 90vw;
  }
  
  .dossier {
    flex-direction: column;
  }
  
  .dossier .photo, 
  .dossier .info {
    width: 100%;
  }
  
  .artwork-layout {
    flex-direction: column;
    height: auto;
  }
  
  .gallery-column,
  .text-column {
    width: 100%;
  }
}

@media (max-width: 768px) {
  body {
    overflow: auto;
  }
  
  .window {
    width: 95vw !important;
    height: auto !important;
    max-height: 80vh;
    left: 2.5vw !important;
    top: 20px !important;
  }
  
  .gallery-thumbnails .thumb {
    width: 80px;
    height: 80px;
  }
  
  .taskbar {
    height: 70px;
    padding-bottom: env(safe-area-inset-bottom);
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }
  
  .taskbar-button {
    min-width: 40px;
    flex-shrink: 0;
  }
  
  .icon {
    width: 48px;
    font-size: 10px;
  }
  
  .icon img {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 480px) {
  .window {
    border-radius: 5px;
  }
  
  .title-bar {
    font-size: 14px;
  }
  
  .window-content {
    padding: 5px;
  }
  
  .gallery-thumbnails .thumb {
    width: 60px;
    height: 60px;
  }
  
  .thumbs .thumb-img {
    width: 40px;
    height: 40px;
  }
}

/* Ajustes gerais para responsividade */
.window {
  position: absolute;
  /* Remova width e height fixos para permitir responsividade */
  min-width: 300px; /* Adicione um mínimo */
  min-height: 200px; /* Adicione um mínimo */
  border-radius: 10px;
  background: white;
  border: 2px solid black;
  box-shadow: 5px 5px 0 #333;
  z-index: 1;
  /* Adicione para melhorar redimensionamento */
  resize: both;
  overflow: auto;
}

.window-content {
  overflow: auto;
}

.dossier {
  flex-wrap: wrap;
}

.taskbar {
  overflow-x: auto;
  padding: 0 10px;
}

.taskbar-button {
  flex-shrink: 0;
}

@media (hover: none) {
  .icon, .taskbar-button, .window-buttons button {
    padding: 8px;
  }
  
  .resize-grip {
    width: 24px;
    height: 24px;
  }
  
  .title-bar {
    padding: 8px;
  }
  
  .window-buttons button {
    width: 24px;
    height: 24px;
    font-size: 16px;
  }
}