<template>
  <div class="grid grid-cols-1 lg:grid-cols-5 gap-8">
    <div class="lg:col-span-3">
      <section>
        <div class="mb-8">
          <p class="mb-4">
            My practice as a composer and sound artist is diverse, ranging from music created by digital and acoustic instruments to installations and kinetic sculptures. Each piece typically explores one simple process and often reflects various related interests of mine such as epistemology, mathematics, algorithmic information theory, and the history of science. Phenomenologically, I contemplate the possibility that everything is potentially computable, even our experiences. Given this digital philosophy, I acknowledge even my most open works as algorithmic; and, while not always apparent on the surface of any given piece, the considerations of computability and epistemology are integral to my practice. I often reconcile epistemological limits with artistic practicality by understanding the limits of computation from an artistic and experiential vantage point and by collaborating with other artists, mathematicians, and scientists in order to integrate objects, ideas, and texts from various domains as structural elements in my pieces. My work also aims to subvert discriminatory conventions and hierarchies by exploring alternative forms of presentation and interaction, often with minimal resources and low information.
          </p>
          <p>
            My music and installations have been presented at venues and festivals throughout the world such as REDCAT, in Los Angeles; the Ostrava Festival of New Music in the Czech Republic; Tsonami Arte Sonoro Festival in Valparaiso, Chile; the Huddersfield New Music Festival in the United Kingdom; and Umbral Sesiones at the Museo de Arte Contemporáneo in Oaxaca, Mexico. Recordings of my music have been released by XI Records, Another Timbre, New World Records, Edition Wandelweiser, Bahn Mi Verlag, Tsonami Records, and Pogus Productions. In 2008, I co-founded <em>the wulf.</em>, a Los Angeles-based organization dedicated to experimental performance and art that presented over 350 events in 8 years. From 2018 to 2019, I was a fellow / artist-in-residence at the Akademie Schloss Solitude in Stuttgart, Germany. I currently teach as University Professor of Sound and Intermedia at the Gustav Mahler Privatuniversität für Musik in Klagenfurt, Austria while maintaining my primary residence in Berlin, Germany.
          </p>
        </div>

        <div class="mb-8 space-y-2">
          <a href="mailto:mwinter@unboundedpress.org" class="block hover:underline text-gray-500">contact</a>
          <a href="/cv" class="block hover:underline text-gray-500">cv</a>
          <a href="/works_list" class="block hover:underline text-gray-500">works list</a>
        </div>

        <div id="mc_embed_signup">
          <form action="https://unboundedpress.us12.list-manage.com/subscribe/post?u=bdadd25738fedf704641f3a80&amp;id=01c5761ebb&amp;f_id=00f143e0f0" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_self">
            <label for="mce-EMAIL" class="block mb-2">subscribe to my mailing list to know about upcoming events</label>
            <div class="flex gap-2">
              <input id="mce-EMAIL" type="email" value="" name="EMAIL" placeholder="email address" required="" class="flex-1 px-3 py-2 border border-gray-300 rounded">
              <div style="position: absolute; left: -5000px;" aria-hidden="true">
                <input type="text" name="b_bdadd25738fedf704641f3a80_01c5761ebb" tabindex="-1" value="">
              </div>
              <input id="mc-embedded-subscribe" type="submit" value="subscribe" name="subscribe" class="px-4 py-2 bg-gray-600 text-white rounded hover:bg-gray-700">
            </div>
            <div id="mce-responses" class="clear foot">
              <div class="response" id="mce-error-response" style="display:none"></div>
              <div class="response" id="mce-success-response" style="display:none"></div>
            </div>
          </form>
        </div>
      </section>
    </div>

    <div class="lg:col-span-2">
      <section v-if="gallery?.length" class="lg:sticky lg:top-24">
        <div class="grid grid-cols-2 gap-4">
          <button 
            v-for="(image, index) in gallery" 
            :key="index"
            @click="openImageModal(index)"
            class="block w-full relative overflow-hidden group"
          >
            <nuxt-img 
              :src="'/images/' + image.image"
              :alt="image.credit"
              class="w-full aspect-[4/3] object-cover transition-opacity duration-200 group-hover:opacity-50"
            />
            <p v-if="image.credit" class="absolute inset-0 flex items-center justify-center opacity-0 group-hover:opacity-100 text-center text-xs px-2 bg-black/50 text-white">photo credit: {{ image.credit }}</p>
          </button>
        </div>
      </section>
    </div>
  </div>
</template>

<script setup>
import { useModalStore } from "@/stores/ModalStore"

const modalStore = useModalStore()

const { data: gallery } = await useFetch('/api/my_image_gallery')

const openImageModal = (index) => {
  modalStore.setModalProps('image', 'aspect-auto', true, 'images', gallery.value, '')
}

useHead({
  titleTemplate: 'Michael Winter - About'
})
</script>

<style scoped>
#mc_embed_signup input.email {
  width: 100%;
}
@media (min-width: 640px) {
  #mc_embed_signup input.email {
    width: auto;
    flex: 1;
  }
}
#mc_embed_signup .button {
  width: auto;
}
@media (max-width: 639px) {
  #mc_embed_signup form > div {
    flex-direction: column;
  }
  #mc_embed_signup .button {
    width: 100%;
  }
}
</style>
